[Mono-bugs] [Bug 36948][Wis] New - error CS0163

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 19 Jan 2003 17:20:55 -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 ebauermeister@t-online.de.

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

--- shadow/36948	Sun Jan 19 17:20:55 2003
+++ shadow/36948.tmp.10839	Sun Jan 19 17:20:55 2003
@@ -0,0 +1,60 @@
+Bug#: 36948
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: SuSE Linux 8.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ebauermeister@t-online.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: error CS0163
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing. 
+Description of Problem: 
+ 
+MCS show error: error CS0163: Control cannot fall through from one case 
+label to another 
+ 
+Steps to reproduce the problem: 
+1. compiling this code: 
+ 
+public class Test 
+{ 
+ public static void main(string[] args) 
+ { 
+  int x=2; 
+  switch(x) 
+  { 
+   case 1: System.Console.WriteLine("x = 1"); 
+           break; 
+   case 2: System.Console.WriteLine("x = 2"); 
+           break; 
+   case 3: System.Console.WriteLine("x = 3"); 
+  } 
+ } 
+} 
+ 
+ 
+Actual Results: 
+ 
+error CS0163: Control cannot fall through from one case 
+label to another 
+ 
+Expected Results: 
+ 
+Output: x = 2 
+ 
+How often does this happen?  
+ 
+always 
+Additional Information: 
+ 
+I use Mono/Mcs 0.18