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

test-anon-39.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e71224363709dfc9fa0151086f9b5ff45dab4be4 (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
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 {
			Hello (j);
			return delegate {
				Hello (j);
			};
		};
		Simple simple = foo ();
		simple ();
	}

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