summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0029-21.cs
blob: b6d3c34b39a8d910fce8326bb4ccaaefce32efa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0029: Cannot implicitly convert type `T' to `EventHandler'
// Line: 14

using System;

public delegate void EventHandler (int i, int j);

public class Button {

	public event EventHandler Click;

	public void Connect<T> () where T : class
	{
		Click += default (T);
	}
}