Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git] / mcs / errors / cs1540-7.cs
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
3
4 class A
5 {
6     protected object[] Test { get { return null; } }
7 }
8
9 class B : A
10 {
11 }
12
13 class C: A
14 {
15     public void Test2 (B b)
16     {
17         foreach (object o in b.Test)
18         {
19         }
20     }
21
22 }