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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 3 Jan 2005 08:16:37 -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.


--- shadow/68711	2005-01-03 06:14:44.000000000 -0500
+++ shadow/68711.tmp.11854	2005-01-03 08:16:37.000000000 -0500
@@ -145,6 +145,15 @@
 68711.cs(18) error CS0030: Cannot convert type 'int' to 'decimal'
 ImplicitConversionStandard: from Int32 to Int32
 Compilation failed: 1 error(s), 0 warnings
 So It does work eventually, but I need to supress that CS0030 error in
 this case.
+------- Additional Comments From bmaurer@users.sf.net  2005-01-03 08:16 -------
+If I remember the spec correctly, for a user defined conv, you are
+allowed 1 *builtin* implicit to go to the src type, and 1 to go to the
+dest type. Also, the decimal -> int is a builtin, according to the spec.
+I might be wrong about this, and dont have time to look it up right now.