[Mono-bugs] [Bug 34451][Min] Changed - mcs - Enum to IntPtr cast failing
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
22 Nov 2002 03:57:44 -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 fgonthier@hermes.usherb.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=34451
--- shadow/34451 Thu Nov 21 18:45:35 2002
+++ shadow/34451.tmp.13230 Thu Nov 21 22:57:44 2002
@@ -1,15 +1,15 @@
Bug#: 34451
Product: Mono/MCS
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
-Priority: Wishlist
+Severity: Unknown
+Priority: Minor
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: fgonthier@hermes.usherb.ca
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
@@ -39,6 +39,14 @@
}
neumann@MinasTirith:~/monocvs$ mcs enum_cast.cs
enum_cast.cs(15) error CS0030: Cannot convert type 'EnumCast+SomeEnum'
to 'System.IntPtr'
Compilation failed: 1 error(s), 0 warnings
+
+------- Additional Comments From fgonthier@hermes.usherb.ca 2002-11-21 22:57 -------
+Rhys Wheatherley from .GNU told me about a simple workaround for this
+bug:
+
+SomeFunction((IntPtr)(int)SomeEnum.Member1);
+
+compiles just fine.