1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
// CS0159: The label `default:' could not be found within the scope of the goto statement // Line: 10 class X { static int m (int n) { switch (n){ case 0: goto default; case 1: return 1; } return 10; } static void Main () { m (1); } }