[Mono-bugs] [Bug 34161][Blo] New - implicit conversion with enums values issue
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
17 Nov 2002 11:11:25 -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=34161
--- shadow/34161 Sun Nov 17 06:11:25 2002
+++ shadow/34161.tmp.18004 Sun Nov 17 06:11:25 2002
@@ -0,0 +1,32 @@
+Bug#: 34161
+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: implicit conversion with enums values issue
+
+This is a build breaker (the MiniParser.cs in the crypto classes file uses
+such stuff).
+class T {
+ private enum My : byte {
+ A = 5,
+ B = 8
+ }
+ static void Main () {
+ ushort v2 = ((ushort)5 << 12) | ((ushort)8 << 8) | 128;
+ ushort v = ((ushort)My.A << 12) | ((ushort)My.B << 8) | 128;
+ }
+}
+This program builds fine with csc, but not with mcs. Note that the line
+with the enum values exposed is compiled fine by mcs.