[Mono-bugs] [Bug 82039][Nor] New - Parsing error instead of CS0542

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 8 07:38:50 EDT 2007


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 gert.driesen at pandora.be.

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

--- shadow/82039	2007-07-08 07:38:50.000000000 -0400
+++ shadow/82039.tmp.10643	2007-07-08 07:38:50.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 82039
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Parsing error instead of CS0542
+
+Compiling the following code snippet results in a parsing error (CS8025) 
+instead of CS0542.
+
+To reproduce, compile the following code snippet:
+
+class Program
+{
+  void Program (object sender)
+  {
+  }
+}
+
+Expected result:
+
+test.cs(3,7): error CS0542: 'Program': member names cannot be the same as 
+their enclosing type
+
+Actual result:
+
+test.cs(5,9): error CS8025: Parsing error


More information about the mono-bugs mailing list