2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1540-10.cs
blob3ab254acd775bc80a2690169db469d22fce94579
1 // CS1540: Cannot access protected member `Test.A.Property' via a qualifier of type `Test.A'. The qualifier must be of type `Test.B.C' or derived from it
2 // Line: 19
4 namespace Test
6 public class A
8 protected int Property {
9 get { return 0; }
13 public class B : A
15 private sealed class C
17 public C (A a)
19 int test = a.Property;
20 test++;