[Mono-bugs] [Bug 34161][Blo] Changed - implicit conversion with enums values issue
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
17 Nov 2002 14:04:48 -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 martin@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34161
--- shadow/34161 Sun Nov 17 06:11:25 2002
+++ shadow/34161.tmp.22409 Sun Nov 17 09:04:48 2002
@@ -2,16 +2,16 @@
Product: Mono/MCS
Version: unspecified
OS: other
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Blocker
Component: Misc
-AssignedTo: mono-bugs@ximian.com
+AssignedTo: martin@ximian.com
ReportedBy: lupus@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
Summary: implicit conversion with enums values issue
@@ -27,6 +27,15 @@
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.
+
+------- Additional Comments From martin@ximian.com 2002-11-17 09:04 -------
+I assume this is the
+System.Security.Cryptography/MiniParser.cs(256) error CS0029: Cannot convert implicitly from `int' to `System.UInt16'
+
+Thanks for the testcase, I was unable to trigger the problem ....
+
+
+