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

cs0159.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 882be581b5fb8cbc574d4c5e21ee170dca9f841a (plain)
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);
	}
}