2010-01-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / errors / cs0038-2.cs
blobfe4d734d30b284218b2a4207cedf3ad08c197de0
1 // cs0038-2.cs: Cannot access a nonstatic member of outer type `X' via nested type `X.Nested'
2 // Line: 9
3 public enum MyEnum { V = 1 }
5 class X {
6 public MyEnum MyEnum;
7 class Nested {
8 internal MyEnum D () {
9 return MyEnum;
13 static int Main () {
14 Nested n = new Nested ();
15 return n.D() == MyEnum.V ? 0 : 1;