[loader] LoadFrom of problematic images should reprobe
[mono-project.git] / mcs / errors / cs1540-18.cs
blob5323224f54be90d6eb07cf131375658c13fa4783
1 // CS1540: Cannot access protected member `A.member' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it
2 // Line: 17
3 // NOTE: csc report simple inaccessible error which is less precise
5 using System;
7 class A
9 protected event EventHandler member;
12 class B : A
14 static void Main ()
16 A a = new A ();
17 a.member += Handler;
20 static void Handler (object sender, EventArgs args) {}