[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs0572.cs
bloba40ddfbddbbf8d274fa9aed9cec9ceeed10f9e9c
1 // CS0572: `Foo': cannot reference a type through an expression. Consider using `Y.Foo' instead
2 // Line: 13
3 using System;
5 class X
7 private static Y y;
9 public static void Main ()
11 y = new Y ();
13 object o = y.Foo.Hello;
17 class Y
19 public enum Foo { Hello, World };
21 public void Test (Foo foo)
23 Console.WriteLine (foo);