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

test-anon-45.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c57a3b697a2509c4caa925c4b91e337e9b40a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
delegate void TestFunc (int val);

class A
{
	public A(TestFunc func)
	{
		func (0);
	}
}

class TestClass
{
	static int i = 1;
	static readonly A a = new A(delegate(int a) { i = a; });

	public static int Main ()
	{
		return i;
	}
}