2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1540-7.cs
blob98d9b8f73958e3aaae0e3c62d2e077518cd842e1
1 // cs1540-7.cs: Cannot access protected member `A.Test' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2 // Line: 17
4 class A
6 protected object[] Test { get { return null; } }
9 class B : A
13 class C: A
15 public void Test2 (B b)
17 foreach (object o in b.Test)