[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0120-6.cs
1 // CS0120: An object reference is required to access non-static member `MemRefMonoBug.Int32'
2 // Line: 11
3
4 using System;
5
6 public class MemRefMonoBug {
7         private int Int32;      // this member has the same name as System.Int32 class
8         public static void Main ()
9         {
10                 new MemRefMonoBug ().Int32 = 0; // this line causes no problem
11                 Int32 = 0;      // mcs crashes in this line
12         }
13 }