Merge pull request #1900 from esdrubal/cyclic-ref
[mono-project.git] / mcs / errors / cs1540-7.cs
blob6e0d61b3229c866ce31a8d90cc644c3c8159612f
1 // CS1540: 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)