[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0572.cs
1 // CS0572: `Foo': cannot reference a type through an expression. Consider using `Y.Foo' instead
2 // Line: 13
3 using System;
4
5 class X
6 {
7         private static Y y;
8
9         public static void Main ()
10         {
11                 y = new Y ();
12
13                 object o = y.Foo.Hello;
14         }
15 }
16
17 class Y
18 {
19         public enum Foo { Hello, World };
20
21         public void Test (Foo foo)
22         {
23                 Console.WriteLine (foo);
24         }
25 }