summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1632-4.cs
blob: a9127d5339374c4b4dc754996c843bb6b8b7d9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// CS1632: Control cannot leave the body of an anonymous method
// Line: 14

using System;

class X
{
	public static void Main ()
	{
		int b = 0;
		switch (b) {
		case 1:
			Action a = () => {
				goto case 2;
			};
			
			break;
		case 2:
			break;
		}
	}
}