[Mono-bugs] [Bug 73335][Nor] Changed - Invalid generated code

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 30 Apr 2005 04:51:47 -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 martin@ximian.com.

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

--- shadow/73335	2005-03-15 20:44:44.000000000 -0500
+++ shadow/73335.tmp.18525	2005-04-30 04:51:47.000000000 -0400
@@ -27,6 +27,47 @@
 Created an attachment (id=14545)
 Source file exhibiting the bug
 
 
 ------- Additional Comments From miguel@ximian.com  2005-03-15 20:44 -------
 Flow analysis bug.
+
+------- Additional Comments From martin@ximian.com  2005-04-30 04:51 -------
+using System;
+
+namespace Test
+{
+	public class Application
+	{
+		private static int ParseType(string inType)
+		{
+			switch (inType)
+			{
+				case "headless":
+					return 0;
+
+				case "headed":
+				default:
+					return 1;
+
+				case "wedge":
+					return 2;
+
+				case "hi":
+					return 3;
+
+				case "she":
+					return 4;
+
+				case "sha2":
+					return 5;
+			}
+		}
+
+		public static void Main()
+		{
+			int result = ParseType("foo");
+		}
+	}
+}
+
+