Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs1540-8.cs
1 // CS1540: Cannot access protected member `A.f' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it
2 // Line: 9
3
4 class A {
5         protected int f { get { return 1; } }
6 }
7
8 class B : A {
9          int baz () { return new A().f; }
10    }
11