2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / errors / cs0038-1.cs
1 // cs0038-1.cs: Cannot access a nonstatic member of outer type 'A' via nested type 'C.N'
2 class A {
3         protected int n = 0;
4 }
5
6 class B : A { }
7
8 class C : B {
9         class N {
10                 internal int foo () { return n; }
11         }
12         public static int Main () {
13                 N a = new N ();
14                 return a.foo ();
15         }
16 }