[Mono-bugs] [Bug 57694][Nor] New - Does not flag conversion error 221.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 27 Apr 2004 00:14:38 -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=57694
--- shadow/57694 2004-04-27 00:14:38.000000000 -0400
+++ shadow/57694.tmp.10985 2004-04-27 00:14:38.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 57694
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Does not flag conversion error 221.
+
+enum A : byte {
+ One = 1
+}
+
+class X {
+ static int Main ()
+ {
+ A a = A.One;
+
+ if ((a & ~A.One) != 0)
+ return 1;
+ return 0;
+ }
+
+}
+
+
+This should flag a 221 error: constant value -2, canot be converted to A
+unless unchecked syntax is used to override.