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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 5 Jan 2004 18:01:41 -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 miguel@ximian.com.

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

--- shadow/52494	2004-01-05 18:01:41.000000000 -0500
+++ shadow/52494.tmp.11560	2004-01-05 18:01:41.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 52494
+Product: Mono/Compilers
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+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
+
+------- Additional Comments From miguel@ximian.com  2004-01-05 18:01 -------
+Fixed.