2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1540-2.cs
blob3de36ee0baca6f6d4a300f8e167f9e40550fc449
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
4 class A
6 protected virtual void X ()
11 class B : A
15 class C : A
17 static B b = new B ();
19 static void M ()
21 b.X ();