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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 13:43:02 -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.3961	2003-12-23 13:43:02.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 52496
 Product: Mono/Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -38,6 +38,35 @@
 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
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-23 13:43 -------
+Related, we do not report CS0069
+
+interface I
+{
+	event System.Delegate d  { add {} remove {} }
+}
+
+class M
+{
+	public static void Main()
+	{
+	}
+}
+
+MS :
+t.cs(3,24): error CS0069: 'I.d': event in interface cannot have add 
+or remove accessors
+MCS :
+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