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

test-anon-13.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2c24abb8421e762039078b6db90069e19956476e (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
34
35
36
37
using System;

delegate void D ();

class X {
	public static void Main ()
	{
		X x = new X (1);
		X y = new X (100);
		D a = x.T ();
		D b = y.T ();

		a ();
		b ();
	}

	X (int start)
	{
		ins = start;
	}

	int ins;

	D T ()
	{
		D d = delegate () {
			Console.WriteLine ("My state is: " + CALL ());
		};

		return d;
	}
	string CALL ()
	{
		return "GOOD";
	}

}