Files
mono/mcs/errors/syntax0068.cs
T
Martin Baulig 115d545a9f 2003-07-21 Martin Baulig <[email protected]>
* syntax0068.cs, syntax0069.cs, syntax0071.cs, syntax0116.cs:
	These are syntax errors which we'd need to catch in cs-parser.jay;
	separate them from the other errors.

	* cs0572.cs: New test.

svn path=/trunk/mcs/; revision=16497
2003-07-21 18:59:11 +00:00

16 lines
310 B
C#

// cs0068.cs: Event in interface can't have initializer.
// Line: 14
using System;
class ErrorCS0068 {
public delegate void FooHandler ();
public void method () {}
public static void Main () {
}
}
interface IFoo {
event ErrorCS0068.FooHandler OnFoo = new ErrorCS0068.FooHandler (ErrorCS0068.method);
}