2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0572.cs
blob8e0537fe766a3eb352f90f9e376a7b2614037244
1 // cs0572.cs: `Foo': cannot reference a type through an expression; try `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);