[Mono-bugs] [Bug 52496][Wis] New - We do not report CS0068 well

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 13:41:20 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52496

--- shadow/52496	2003-12-23 13:41:20.000000000 -0500
+++ shadow/52496.tmp.3902	2003-12-23 13:41:20.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 52496
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: We do not report CS0068 well
+
+interface I
+{
+	event System.Delegate d = null;
+}
+
+class M
+{
+	public static void Main()
+	{
+	}
+}
+
+MS gives:
+t.cs(3,24): error CS0068: 'I.d': event in interface cannot have initializer
+
+We give
+syntax error, expecting SEMICOLON
+t.cs(3) error CS1041: Identifier expected
+System.NullReferenceException: Object reference not set to an instance of 
+an obj
+ect.
+   at Mono.CSharp.Interface.AddEvent(InterfaceEvent ievent)
+   at Mono.CSharp.CSharpParser.yyparse(yyInput yyLex)
+   at Mono.CSharp.CSharpParser.parse()
+t.cs(3) error CS8025: Parsing error