Files
mono/mcs/errors/cs0572.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

26 lines
336 B
C#

// cs0572.cs: `Foo': cannot reference a type through an expression; try `Y.Foo' instead
// Line: 13
using System;
class X
{
private static Y y;
public static void Main ()
{
y = new Y ();
object o = y.Foo.Hello;
}
}
class Y
{
public enum Foo { Hello, World };
public void Test (Foo foo)
{
Console.WriteLine (foo);
}
}