[Mono-bugs] [Bug 44731][Nor] Changed - Implicit conversion in switch statements should error out
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 30 Jun 2003 15:14:25 -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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44731
--- shadow/44731 Tue Jun 17 16:03:26 2003
+++ shadow/44731.tmp.18837 Mon Jun 30 15:14:25 2003
@@ -34,6 +34,27 @@
errors out on csc due to an invalid implicit conversion from uint to
enumerated type. mcs compiles without error.
------- Additional Comments From ravi@ximian.com 2003-06-17 16:03 -------
Wow, I had no idea this was supposed to be done. Assigning to myself
+
+------- Additional Comments From miguel@ximian.com 2003-06-30 15:14 -------
+Please, try to use full samples:
+
+public class Foo {
+ enum MyEnumType { MyValue }
+
+ public void Bar ()
+ {
+ uint my_uint_var;
+ switch (my_uint_var) {
+ case MyEnumType.MyValue:
+ break;
+ default:
+ break;
+ }
+ }
+
+ static void Main () {}
+}
+