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

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

delegate void D ();

unsafe class X {
	public D T (int a)
	{
		return delegate {
			int *x = &a;
		};
	}

	static void Main ()
	{ }
}