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: 8ed3ba11849e92a897af1fe72f6067175d51d826 (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);
	}
}