-// cs0122-8.cs: `A.member' is inaccessible due to its protection level
-// Line: 17
-// NOTE: if `member' were a field or a property, this'd be CS1540
+// CS0122: `A.AA.Foo()' is inaccessible due to its protection level
+// Line: 16
+// Compiler options: -r:CS0122-8-lib.dll
-using System;
-
-class A
-{
- protected event EventHandler member;
-}
-
-class B : A
+public class Test
{
- static void Main ()
- {
- A a = new A ();
- a.member += Handler;
- }
-
- static void Handler (object sender, EventArgs args) {}
+ public static void Main ()
+ {
+ new B.BB ().Foo ();
+ }
}
-
-