[Mono-bugs] [Bug 68711][Nor] Changed - implicit casts not transitive
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 3 Jan 2005 05:59: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 duncan@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68711
--- shadow/68711 2005-01-03 05:57:59.000000000 -0500
+++ shadow/68711.tmp.11111 2005-01-03 05:59:39.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: dan@clevermachine.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
Summary: implicit casts not transitive
@@ -104,6 +104,18 @@
Sigh, this patch is totally wrong ;-(
------- Additional Comments From duncan@ximian.com 2005-01-03 05:57 -------
Created an attachment (id=13628)
A different approach
+
+------- Additional Comments From duncan@ximian.com 2005-01-03 05:59 -------
+This patch seems to work. I ran the test suite and this didn't break
+anything.
+
+2005-01-03 Duncan Mak <duncan@ximian.com>
+
+ * convert.cs (UserDefinedConversion): Call UserDefinedConversion
+ recursively to find all possible conversions, because a UserCast
+ might be necessary to cast original_source into most_specific_source.
+
+ This fixes #68711.