[wasm] Fix WASM CI script. (#6741)
[mono-project.git] / mcs / errors / cs0038-1.cs
blob2ddecca440cd8f758d12509874c51a96d2e3d780
1 // CS0038: Cannot access a nonstatic member of outer type `A' via nested type `C.N'
2 // Line: 12
4 class A {
5 protected int n = 0;
8 class B : A { }
10 class C : B {
11 class N {
12 internal int foo () { return n; }
14 public static int Main () {
15 N a = new N ();
16 return a.foo ();