[Mono-bugs] [Bug 33094][Wis] Changed - C# switch statement fails to compile.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
1 Nov 2002 07:03:24 -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 miguel@ximian.com.

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

--- shadow/33094	Thu Oct 31 06:51:55 2002
+++ shadow/33094.tmp.20541	Fri Nov  1 02:03:24 2002
@@ -118,6 +118,16 @@
 		nonAscii++;
 		System.Console.WriteLine(ascii);
 		System.Console.WriteLine(nonAscii);
 		break;
 	}
 }
+
+------- Additional Comments From miguel@ximian.com  2002-11-01 02:03 -------
+There is in fact one bug I know of here, and that one will be fixed
+(declarations have to cascade from one switch label to the next, sadly
+a quick fix is not possible, and will require some more work).
+
+Although the puzzling bit is that you are allowed to enter two
+variable declarations without explicit blocks, that sounds like the MS
+compiler is not showing an error that it should report.
+