2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs1540-9.cs
blobfbdd3f041eda30497e10359b753bb445efaf6a1c
1 // CS1540: Cannot access protected member `A.Test(int)' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2 // Line: 28
3 using System;
5 public abstract class A
7 protected virtual void Test (int a)
8 { }
10 public void Test ()
11 { }
14 public class B : A
16 protected override void Test (int a)
18 base.Test (a);
22 public class C : A
24 private B B;
26 protected override void Test (int a)
28 B.Test (a);
29 base.Test (a);
33 class X
35 static void Main ()
36 { }