summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0066.cs
blob: e45d27a65ca4d717ed85066840c63cf10ace0d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// CS0066: `Button.Click': event must be of a delegate type
// Line : 10

using System;

public delegate void EventHandler (object sender, EventArgs e);

public class Button {

	public event Blah Click;

	public void Reset ()
	{
		Click = null;
	}
}

public class Blah {

	public static void Main ()
	{
		Blah b = new Blah ();
	}
	
}