New test.
[mono.git] / mcs / errors / cs1540-8.cs
1 // cs1540-8.cs: 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