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

test-anon-08.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f7464c4d05870fc5b60271c5737fb98889ecfaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Tests assignment of a captured variable to another
// Do not add anything else to this test.
//
delegate void S ();

class X {

	//
	// DO NOT ADD ANYTHING ELSE TO THIS TEST
	//
	public static int Main ()
	{
		int a = 2;
		int b = 1;
		S d = delegate {
			a = b;
		};

		return 0;
	}
}