[Mono-bugs] [Bug 32269][Nor] Changed - Cast from enum variable to System.Enum gives null

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
18 Nov 2002 16:40: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 lupus@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=32269

--- shadow/32269	Mon Oct 14 20:29:04 2002
+++ shadow/32269.tmp.22336	Mon Nov 18 11:40:44 2002
@@ -1,16 +1,16 @@
 Bug#: 32269
-Product: Mono/Runtime
+Product: Mono/MCS
 Version: unspecified
 OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
-Component: misc
+Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: andy@nobugs.org               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
@@ -79,6 +79,13 @@
 says: return "the resulting instance as a value of type object".  If
 mcs were to implement this behaviour, I suspect BoxedCast would need
 to be modified...
 
 Hope that this commentary is useful to whoever works on this...
 Hopefully it is even correct :)
+
+------- Additional Comments From lupus@ximian.com  2002-11-18 11:40 -------
+Reassigning the bug to mcs, since it's a compiler bug.
+With current cvs, mcs gives the following error (while csc compiles it
+fine):
+enum-cast3.cs(10) error CS0029: Cannot convert implicitly from
+`object' to `System.Enum'