New test.
[mono.git] / mcs / errors / cs0038-2.cs
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 }
4
5 class X {
6         public MyEnum MyEnum;   
7         class Nested {
8                 internal MyEnum D () { 
9                         return MyEnum; 
10                 }
11         }
12         
13         static int Main () {
14                 Nested n = new Nested ();
15                 return n.D() == MyEnum.V ? 0 : 1;
16         }
17 }