Merge branch 'master' of github.com:tgiphil/mono
[mono.git] / mcs / errors / gcs0019-4.cs
1 // CS0019: Operator `+=' cannot be applied to operands of type `EventHandler' and `T'
2 // Line: 10\r
3 \r
4 using System;\r
5 \r
6 public delegate void EventHandler (int i, int j);\r
7 \r
8 public class Button {\r
9 \r
10         public event EventHandler Click;\r
11 \r
12         public void Connect<T> () where T : class\r
13         {\r
14                 Click += default (T);\r
15         }\r
16 }\r