1 // Compiler options: -warn:4 -warnaserror
5 // Nothing wrong with this, gmcs says otherwise
7 public class TestGeneric
<T
>
9 public event EventHandler Event
;
13 Event (this, EventArgs
.Empty
);
17 // Nothing wrong with this, gmcs concurs
18 // Note that T is used in the delegate signature for Event
19 public class TestGeneric2
<T
>
21 public delegate void GenericHandler (T t
);
22 public event GenericHandler Event
;
30 // Nothing wrong with this, gmcs concurs
31 // Class is not generic
34 public event EventHandler Event
;
38 Event (this, EventArgs
.Empty
);
41 public static void Main ()