[mcs] Pending implementation of accessors cannot hide base implementation with differ...
[mono.git] / mcs / tests / test-736.cs
1 // Compiler options: -warn:4 -warnaserror
2
3 using System;
4
5 // Nothing wrong with this, gmcs says otherwise
6 // Class is generic
7 public class TestGeneric<T>
8 {
9         public event EventHandler Event;
10
11         public void Raise ()
12         {
13                 Event (this, EventArgs.Empty);
14         }
15 }
16
17 // Nothing wrong with this, gmcs concurs
18 // Note that T is used in the delegate signature for Event
19 public class TestGeneric2<T>
20 {
21         public delegate void GenericHandler (T t);
22         public event GenericHandler Event;
23
24         public void Raise ()
25         {
26                 Event (default (T));
27         }
28 }
29
30 // Nothing wrong with this, gmcs concurs
31 // Class is not generic
32 public class Test
33 {
34         public event EventHandler Event;
35
36         public void Raise ()
37         {
38                 Event (this, EventArgs.Empty);
39         }
40
41         public static void Main ()
42         {
43         }
44 }
45