[Mono-bugs] [Bug 70468][Nor] Changed - Constant value `-1' cannot be converted to System.IFormattable

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 30 Dec 2004 05:37:00 -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 duncan@ximian.com.

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

--- shadow/70468	2004-12-30 05:35:48.000000000 -0500
+++ shadow/70468.tmp.29070	2004-12-30 05:37:00.000000000 -0500
@@ -5,13 +5,13 @@
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: C#
-AssignedTo: mono-bugs@ximian.com                            
+AssignedTo: duncan@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Summary: Constant value `-1' cannot be converted to System.IFormattable
 
@@ -38,6 +38,14 @@
 
 
 ------- Additional Comments From duncan@ximian.com  2004-12-30 05:35 -------
 Created an attachment (id=13611)
 Proposed fix
 
+
+------- Additional Comments From duncan@ximian.com  2004-12-30 05:37 -------
+2004-12-30  Duncan Mak  <duncan@ximian.com>
+
+	* convert.cs: Fixed some typos and update some of the names.
+	(TryImplicitIntConversion): if target_type is IConvertible,
+	IComparable or IFormattable, return a BoxedCast instead of
+	failing. This fixes #70468.