diff options
Diffstat (limited to 'mcs/errors/cs0066.cs')
-rw-r--r-- | mcs/errors/cs0066.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/errors/cs0066.cs b/mcs/errors/cs0066.cs new file mode 100644 index 00000000000..e7e6f5e3479 --- /dev/null +++ b/mcs/errors/cs0066.cs @@ -0,0 +1,25 @@ +// cs0066.cs : '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 (); + } + +} |