Fix all CreateInstance overloads for void
[mcs.git] / errors / cs0122-8.cs
blobb61b31720f4d6f42e255f07fa2c1ba8280e4053e
1 // cs0122-8.cs: `A.member' is inaccessible due to its protection level
2 // Line: 17
3 // NOTE: if `member' were a field or a property, this'd be CS1540
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) {}