2010-06-04 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0821.cs
blobba4c381492510a22016637cd4a4d204728f144d8
1 // CS0821: A fixed statement cannot use an implicitly typed local variable
2 // Line: 9
3 // Compiler options: -unsafe
5 public class Point
7 public int X;
8 public int Y;
11 public class Test
13 unsafe static void Main ()
15 Point p = new Point ();
16 p.X = 42;
17 p.Y = 16;
19 fixed (var x = &p.X)