overflow bug has been fixed in net_4_0
[mcs.git] / errors / cs0176-5.cs
blobf912acaff5709c3d1de84636e8e6eeb0bb1a047f
1 // CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead
2 // Line: 14
4 public enum MyEnum
6 Foo = 1
9 public class Test
11 static void Main ()
13 MyEnum theEnum = MyEnum.Foo;
14 if (theEnum == theEnum.Foo)