[Mono-bugs] [Bug 77964][Nor] New - mcs requires goto case to be
implicitly convertible to case type
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Mar 30 17:07:50 EST 2006
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 marek.safar at seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=77964
--- shadow/77964 2006-03-30 17:07:50.000000000 -0500
+++ shadow/77964.tmp.1768 2006-03-30 17:07:50.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 77964
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: marek.safar at seznam.cz
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs requires goto case to be implicitly convertible to case type
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1.
+class Test
+{
+ static void Main()
+ {
+ char c = 'c';
+ switch (c)
+ {
+ case 'A':
+ break;
+
+ case 'a':
+ goto case 65;
+ }
+ }
+}
+
+Actual Results:
+
+0.cs(12,13): error CS0266: Cannot implicitly convert type `int' to `char'.
+An explicit conversion exists (are you missing a cast?)
+0.cs(6,7): error CS0163: Control cannot fall through from one case label to
+another
+
+Expected Results:
+
+No error only warning.
+
+0.cs(12,23): warning CS0469: The `goto case' value is not implicitly
+convertible to type `char'
+
+
+How often does this happen?
+
+
+Additional Information:
More information about the mono-bugs
mailing list