[Mono-bugs] [Bug 52578][Wis] Changed - MCS invalidly emits a Box when converting a System.Enum to an interface

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Jan 2004 14:08:39 -0500 (EST)


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 bmaurer@users.sf.net.

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

--- shadow/52578	2004-01-03 13:58:25.000000000 -0500
+++ shadow/52578.tmp.17971	2004-01-03 14:08:39.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 52578
 Product: Mono/Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -54,6 +54,19 @@
 See also: bug 52569
 
 ------- Additional Comments From pcgod@gmx.net  2004-01-03 13:58 -------
 Created an attachment (id=6339)
 proposed patch
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-01-03 14:08 -------
+using System;
+
+class T {
+	public static void Main ()
+	{
+		IConvertible convertible = (IConvertible) 1;
+		Console.WriteLine ((int) convertible == 1);
+	}
+}
+
+Regresses with your patch