summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1540-8.cs
blob: 3254c3ca7b277d04e2284d7a50107747bf5bfcb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS1540: Cannot access protected member `A.f' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it
// Line: 9

class A {
	protected int f { get { return 1; } }
}

class B : A {
         int baz () { return new A().f; }
   }