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

using System;

class X {
	delegate void T ();

	static void Main ()
	{
		T t = delegate {
			goto L;
		};

L:
		Console.WriteLine ("Hello");
		      
	}
}