[Mono-bugs] [Bug 64997][Wis] New - CS0152 error (duplicate case statement) lacks error location

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 1 Sep 2004 02:54:07 -0400 (EDT)


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

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

--- shadow/64997	2004-09-01 02:54:07.000000000 -0400
+++ shadow/64997.tmp.19143	2004-09-01 02:54:07.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 64997
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS0152 error (duplicate case statement) lacks error location
+
+When we have trouble on our sources that result in CS0152 error, we get
+such error report like:
+
+error CS0152: The label `case + 3:' is already present on this switch statement
+
+I think this report could attach error location (file + line number) as
+well as other kind of errors.
+
+--------
+using System;
+
+public class Tests
+{
+        TypeCode t;
+
+        public void Foo ()
+        {
+                switch (t) {
+                case TypeCode.Boolean:
+                case TypeCode.Boolean:
+                        return;
+                }
+        }
+}