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

cs1686.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b884c599177b7f985c282283655443f412b0a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// cs1686.cs: Local variable `i' or its members cannot have their address taken and be used inside an anonymous method block
// Line: 16
// Compiler options: -unsafe

class X {
	delegate void S ();

	unsafe void M ()
	{
		int i;
		int * j ;

		S s = delegate {
			i = 1;
		};
		j = &i;
	}

	static void Main () {}
}