Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-anon-41.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d64280cf8ef632045f3fde226fc70fa1037a79f6 (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
25
26
27
28
29
30
31
32
33
using System;

delegate void Simple ();

delegate Simple Foo ();

class X
{
	public void Hello (long k)
	{ }

	public void Test (int i)
	{
		long j = 1 << i;
		Hello (j);
		Foo foo = delegate {
			long k = j;
			Hello (j);
			return delegate {
				long l = k;
				Hello (j);
			};
		};
		Simple simple = foo ();
		simple ();
	}

	static void Main ()
	{
		X x = new X ();
		x.Test (3);
	}
}