[Mono-bugs] [Bug 34162][Blo] New - cast in a switch case not handled
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
17 Nov 2002 11:15:13 -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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34162
--- shadow/34162 Sun Nov 17 06:15:13 2002
+++ shadow/34162.tmp.23628 Sun Nov 17 06:15:13 2002
@@ -0,0 +1,34 @@
+Bug#: 34162
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: cast in a switch case not handled
+
+This is a build blocker for corlib.
+class T {
+ enum My : byte {
+ A
+ }
+ static void Main() {
+ int val = 0;
+ switch (val) {
+ case (int)My.A:
+ break;
+ default:
+ break;
+ }
+ }
+}
+The sample compiles fine with csc, but not with mcs.