f8a89b25659474ba368650c02a016c41b8197656
[mono.git] / mcs / errors / cs1764.cs
1 // CS1764: Cannot use fixed local `p' inside an anonymous method, lambda expression or query expression
2 // Line: 10
3 // Compiler options: -unsafe
4
5 using System;
6
7 unsafe class Test
8 {
9         static int x;
10
11         static void Main ()
12         {
13                 fixed (int* p = &x) {
14                         Action a = () => { var pp = p; };
15                 }
16         }
17 }