summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1525-20.cs
blob: 2aefb8701191383461042f00d45ccd0bb135ef67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS1525: Unexpected symbol `default:'
// Line: 12

class Program
{
	static void Main ()
	{
		int x = 0;
		switch (x) {
		case 2:
			int a = 1;
		case default:
			return;
		case 1:
			int b = 1;
		}
	}
}