retag
[mcs.git] / errors / cs1540-3.cs
blobac6c697560cc188c686f0907b4e39422c1df646d
1 // cs1540.cs: Cannot access protected member `A.n' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2 // Line: 19
4 class A
6 protected int n;
9 class B : A
13 class C : A
15 static B b = new B ();
17 static void Main ()
19 b.n = 1;