[Mono-bugs] [Bug 52494][Wis] New - We do not report CS0065 well

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 13:37:54 -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=52494

--- shadow/52494	2003-12-23 13:37:54.000000000 -0500
+++ shadow/52494.tmp.3834	2003-12-23 13:37:54.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 52494
+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 CS0065 well
+
+We give the wrong error for:
+using System;
+
+public class A {
+   public event Delegate Foo {
+      remove {}
+   }
+
+   public static void Main ()
+   {
+   }
+}
+
+On MS you get
+t.cs(4,26): error CS0065: 'A.Foo' : event property must have both add and 
+remove accessors
+
+We give
+syntax error, expecting ADD OPEN_BRACKET
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+   at Mono.CSharp.CSharpParser.yyparse(yyInput yyLex)
+   at Mono.CSharp.CSharpParser.parse()
+t.cs(6) error CS8025: Parsing error
+Compilation failed: 1 error(s), 0 warnings