summaryrefslogtreecommitdiff
path: root/mcs/tests/test-anon-90.cs
blob: e1c0ff44d25edb1b685c821f868d124914ea5241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class C
{
	public static int Main ()
	{
		new C ().Foo ();
		return 0;
	}
	
	delegate void D ();
	
	void Foo ()
	{
		int x = 0;
		D d1 = delegate () {
			int y = 1;
			if (y == 1) {
				int z = 2;
				D d2 = delegate () {
					int a = x + y + z;
				};
			}
		};
	}
}