[Mono-bugs] [Bug 68711][Nor] Changed - mcs does not do conversions to/from decimal

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 9 08:44:25 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 skolima at gmail.com.

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

--- shadow/68711	2005-09-09 08:36:07.000000000 -0400
+++ shadow/68711.tmp.5454	2005-09-09 08:44:25.000000000 -0400
@@ -201,6 +201,19 @@
 With review from harinath, patch is commited in r44928. This is now fixed.
 
 ------- Additional Comments From skolima at gmail.com  2005-09-09 08:36 -------
 Created an attachment (id=15711)
 test case for implicit decimal conversion
 
+
+------- Additional Comments From skolima at gmail.com  2005-09-09 08:44 -------
+I suggest reopening the bug. See my atachment : the code compiles and
+works under csc, but not under cscc (mono 1.1.8.2 / .3) or mcs
+(Portable .Net).
+
+Problem is, according to ECMA, the compiler should look for possible
+implicit cast for an operator. CSCC checks only those returning a
+double, ignoring those providing a decimal. Try adding another
+implicit cast operator (to Decimal2) returning a double - CSCC will
+now compile the code, wheras it should now report a bug, because the
+code becames ambigious (there are 2 possible, equally specific
+implicit casts).


More information about the mono-bugs mailing list