Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gcs0019-4.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e24febd725b16e0fc2016d37cead8dce2bdfce89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0019: Operator `+=' cannot be applied to operands of type `EventHandler' and `T'
// Line: 10

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);
	}
}