[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / errors / cs1540-5.cs
blobba90d8a351c0400eada2b7f6282d402860cfca8f
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
4 class A {
5 protected int n = 0;
8 class B : A { }
10 class C : B {
11 class N {
12 static internal int foo (B b) { return b.n; }
14 public static int Main () {
15 return N.foo (new B ());