[Mono-bugs] [Bug 68711][Nor] Changed - implicit casts not transitive
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue May 24 07:40:51 EDT 2005
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 at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68711
--- shadow/68711 2005-02-14 06:36:23.000000000 -0500
+++ shadow/68711.tmp.13411 2005-05-24 07:40:50.000000000 -0400
@@ -174,6 +174,15 @@
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.
+
+------- Additional Comments From duncan at ximian.com 2005-05-24 07:40 -------
+So it's not so much that casting is not transitive, it's just that
+we're not handling casts (implicit or explicit) that concern
+System.Decimal.
+
+Here's a patch that adds two new Expression classes, CastFromDecimal
+(handling the explicit casts to Decimal) and CastToDecimal (handling
+the implicit casts to Decimal).
More information about the mono-bugs
mailing list