Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0176-5.cs
1 // CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead
2 // Line: 14
3
4 public enum MyEnum
5 {
6         Foo = 1
7 }
8
9 public class Test
10 {
11         static void Main ()
12         {
13                 MyEnum theEnum = MyEnum.Foo;
14                 if (theEnum == theEnum.Foo)
15                 {
16                 }
17         }
18 }