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

cs1764.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1dd2e36d1591c8f4bd3fdcb8e8dad9daea66c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS1764: Cannot use fixed variable `p' inside an anonymous method, lambda expression or query expression
// Line: 10
// Compiler options: -unsafe

using System;

unsafe class Test
{
	static int x;

	static void Main ()
	{
		fixed (int* p = &x) {
			Action a = () => { var pp = p; };
		}
	}
}