Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git] / mcs / errors / cs1540-3.cs
blob22feaa957551950935e06470ad86d8ddf3fe822f
1 // CS1540: 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;