2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / errors / cs1540-2.cs
1 // cs1540-2.cs : Cannot access protected member `A.X()' via a qualifier of type `B'; the qualifier must be of type `C' (or derived from it)
2 // line: 21
3
4 class A
5 {
6         protected virtual void X ()
7         {
8         }
9 }
10  
11 class B : A
12 {
13 }
14  
15 class C : A
16 {
17         static B b = new B ();
18  
19         static void M ()
20         {
21                 b.X ();
22         }
23 }