summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1764.cs
blob: f8a89b25659474ba368650c02a016c41b8197656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS1764: Cannot use fixed local `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; };
		}
	}
}