Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1540-5.cs
1 // CS1540: Cannot access protected member `A.n' via a qualifier of type `B'. The qualifier must be of type `C.N' or derived from it
2 // Line: 12
3
4 class A {
5         protected int n = 0;
6 }
7
8 class B : A { }
9
10 class C : B {
11         class N {
12                 static internal int foo (B b) { return b.n; }
13         }
14         public static int Main () {
15                 return N.foo (new B ());
16         }
17 }