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: 65aa5cb2dfbcfcc008d17244784c005437400c90 (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.cs: No default target for goto default
// Line:

class X {

	static int m (int n)
	{
		switch (n){
		case 0:
			goto default;

		case 1:
			return 1;
		}

		return 10;
	}
	
	static void Main ()
	{
		m (1);
	}
}