Replace SIZEOF_REGISTER with sizeof(mgreg_t) for consistency with sizeof(gpointer)
[mono.git] / mcs / errors / gcs0029-11.cs
1 // CS0029: Cannot implicitly convert type `T' to `EventHandler'
2 // Line: 14
3
4 using System;
5
6 public delegate void EventHandler (int i, int j);
7
8 public class Button {
9
10         public event EventHandler Click;
11
12         public void Connect<T> () where T : class
13         {
14                 Click += default (T);
15         }
16 }