[Mono-bugs] [Bug 76273][Nor] New - Missing check CS0221 for enum
conversion
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 29 08:10:19 EDT 2005
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=76273
--- shadow/76273 2005-09-29 08:10:19.000000000 -0400
+++ shadow/76273.tmp.8205 2005-09-29 08:10:19.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 76273
+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: Missing check CS0221 for enum conversion
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+
+enum E:byte {
+ Min
+}
+
+class T {
+ static void Main () {
+ E error = E.Min - 1;
+ System.Console.WriteLine (error);
+ }
+}
+Actual Results:
+
+No error.
+
+Expected Results:
+
+(7,13): error CS0221: Constant value '-1' cannot be converted to a 'E' (use
+'unchecked' syntax to override)
+
+How often does this happen?
+
+
+Additional Information:
More information about the mono-bugs
mailing list