[Mono-bugs] [Bug 34956][Nor] New - mcs doesn't report errors of type CS0071 and more!!

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
3 Dec 2002 16:55:31 -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=34956

--- shadow/34956	Tue Dec  3 11:55:31 2002
+++ shadow/34956.tmp.21419	Tue Dec  3 11:55:31 2002
@@ -0,0 +1,85 @@
+Bug#: 34956
+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 CS0071 and more!!
+
+Package: Mono/MCS
+Priority: Normal
+Version: CVS Dec01-2002
+Synopsis: mcs doesn't report errors of type CS0071 and more!!
+Bugzilla-Product: Mono/MCS
+Bugzilla-Component: Misc
+
+Description:
+Description of Problem:
+
+After writting a test for the error CS0071 (An explicit implementation
+of an
+event must use property syntax) I have observed the following:
+
+1.- In fact, mcs doesn't report that type of errors.
+2.- Instead of that it doesn't compile but the message is:
+
+jaime@intifada:~/src/mono/mcs/errors$ mcs cs0071.cs
+syntax error, expecting OPEN_BRACE
+cs0071.cs (13,24), Token: OPEN_PARENS   : 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 ()
+
+error CS5001: Program cs0071.exe does not have an entry point defined
+Compilation failed: 1 error(s), 0 warnings
+
+In order to have more information of what could be happening with the
+test, I
+tried to compile it using csc (.NET SDK 1.1), with the expected result.
+
+3.- If you skip the ( ) in the explicit implementation you get the
+same.
+
+Steps to reproduce the problem:
+
+Try the mcs/errors/cs0071.cs
+
+Here it's the code:
+
+// cs0071.cs: An explicit implementation of an event must use property
+syntax.
+// Line: 13
+
+using System;
+
+public delegate void Foo (object source);
+
+interface IFoo {
+        event Foo OnFoo;
+}
+
+class ErrorCS0071 : IFoo {
+        event Foo IFoo.OnFoo () { }
+        public static void Main () {
+        }
+}
+
+
+
+
+
+Setting qa contact to the default for this product.
+   This bug either had no qa contact or an invalid one.
+
+