[Mono-bugs] [Bug 68711][Nor] Changed - implicit casts not transitive

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 14 Feb 2005 06:36:23 -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 rharinath@novell.com.

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

--- shadow/68711	2005-01-03 13:24:33.000000000 -0500
+++ shadow/68711.tmp.7940	2005-02-14 06:36:23.000000000 -0500
@@ -158,6 +158,22 @@
 
 I might be wrong about this, and dont have time to look it up right now.
 
 ------- Additional Comments From duncan@ximian.com  2005-01-03 13:24 -------
 So perhaps the correct fix is to change my first patch, and return
 UserCast instead of BoxedCast.
+
+------- Additional Comments From rharinath@novell.com  2005-02-14 06:36 -------
+At most 3 conversions:
+
+  - A (optional) standard implicit conversion from source to source'
+
+  - the actual user defined implicit conversion from source' to target'
+
+  - A (optional) standard implicit conversion from target' to target
+
+The second approach is wrong.
+
+A conversion from 'int' to 'decimal' is a standard implicit numerical
+conversion.  A BoxedCast seems terribly wrong since both 'int' and
+'decimal' are value types.  An UserCast is even more terribly wrong.
+