Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0821.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)