2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs1540-10.cs
blob87c17e3338d033d6cb249dd8f91fa83cb889ff83
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++;