Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0159-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 772185158e30f6b23e580b6b36cd243e3b1a757d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0159: The label `case 20:' could not be found within the scope of the goto statement
// Line: 13

class y {
	enum X { A = 1, B = 1, C = 1 }

	static void Main ()
	{
		int x = 1;

		switch (x){
			case 1: break;
			case 2: goto case 20;
		}
	}
}