2005-06-29 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git] / errors / cs1540-5.cs
blobda3d1210bb8524ebc9e9432ec46af8b4034fe4fc
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 ());