In ilasm/tests:
[mcs.git] / errors / cs0120-6.cs
blob7dd4fa727d57f3bf5d0b0f15c460cd210bef9e95
1 // cs0120-6.cs: `Int32': An object reference is required for the nonstatic field, method or property
2 // Line: 11
4 using System;
6 public class MemRefMonoBug {
7 private int Int32; // this member has the same name as System.Int32 class
8 public static void Main ()
10 new MemRefMonoBug ().Int32 = 0; // this line causes no problem
11 Int32 = 0; // mcs crashes in this line