2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1540-5.cs
blob2d50a574b720a4b8d74bf913876475a1100b084e
1 // cs1540.cs: 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 ());