[interp] Don't check for exception in native wrappers (#14184)
[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);