blob: 26184e7a88015fe04cc6ef68308a0ab6fe2d6785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 14
public enum MyEnum
{
Foo = 1
}
public class Test
{
static void Main ()
{
MyEnum theEnum = MyEnum.Foo;
if (theEnum == theEnum.Foo)
{
}
}
}
|