[Mono-bugs] [Bug 34867][Nor] New - mcs doesn't report errors of type CS0069 and more funny stuff.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
2 Dec 2002 18:09:03 -0000


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 bugbuddy-import@ximian.com.

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

--- shadow/34867	Mon Dec  2 13:09:02 2002
+++ shadow/34867.tmp.17951	Mon Dec  2 13:09:02 2002
@@ -0,0 +1,91 @@
+Bug#: 34867
+Product: Mono/MCS
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: 
+Status: UNCONFIRMED   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: Misc
+AssignedTo: triage@ximian.com                            
+ReportedBy: jaimemonkey@yahoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs doesn't report errors of type CS0069 and more funny stuff.
+
+Package: Mono/MCS
+Priority: Normal
+Version: CVS Dec01-2002
+Synopsis: mcs doesn't report errors of type CS0069 and more funny stuff.
+Bugzilla-Product: Mono/MCS
+Bugzilla-Component: Misc
+
+Description:
+Description of Problem:
+
+As what happened before with the test for error CS0068, please refer to
+
+http://bugzilla.ximian.com/show_bug.cgi?id=34865 for more info about
+that.
+
+Now I get the following error:
+
+jaime@intifada:~/src/mono/mcs/errors$ mcs cs0069.cs
+syntax error, expecting OPEN_BRACKET STAR IDENTIFIER
+cs0069.cs (13,18), Token: OPEN_BRACE   : Parsing error 
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+in <0x00868> 00 Mono.CSharp.CSharpParser:yyparse
+(Mono.CSharp.yyParser.yyInput)
+in <0x0006f> 00 Mono.CSharp.CSharpParser:parse ()
+
+Compilation succeeded
+jaime@intifada:~/src/mono/mcs/errors$ vi cs0069.cs
+
+But I still can compile, so mcs doesn't pass the test and it also
+complains about an error that AFAIK is not there. As this is the second
+test (similar ones) that reflects this behavior I think it might be
+something about how the compiler treats the interfaces, in particular
+with those fields that have any type of assignments, constructors or
+accessor definitions as in:
+
+   interface X {
+            Bar boo = new Bar ... 
+	event SomeDelegate AnEvent {
+		add { } remove {}
+	...
+
+
+Steps to reproduce the problem:
+
+The test is at mcs/errors/cs0069.cs but here is the code too:
+
+// cs0069.cs: Event cannot have add or remove accessors in an
+interface.
+// Line: 13
+
+using System;
+
+class ErrorCS0069 {
+        public delegate void FooHandler ();
+        public static void Main () {
+        }
+}
+
+interface IBar {
+        event OnFoo {
+                add { }
+                remove { }
+        }
+}
+
+
+
+
+
+Setting qa contact to the default for this product.
+   This bug either had no qa contact or an invalid one.
+
+