[Mono-bugs] [Bug 78416][Wis] Changed - [GMCS] Compile error on code which csc compiles -- nullable conversions

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 15 07:28:50 EDT 2006

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 at novell.com.


--- shadow/78416	2006-05-20 15:07:59.000000000 -0400
+++ shadow/78416.tmp.1385	2006-06-15 07:28:50.000000000 -0400
@@ -10,14 +10,13 @@
 Component: C#
 AssignedTo: martin at ximian.com                            
 ReportedBy: adrinael at adrinael.net               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
-Summary: [GMCS] Compile error on code that is incorrect which csc compiles
+Summary: [GMCS] Compile error on code which csc compiles -- nullable conversions
 Description of Problem:
 The following little code snippet
 object d;
@@ -38,6 +37,18 @@
 nullable form of that type"
 Strictly said, that makes (double?)decimalvalue    an error _if_ the
 conversion needs to convert to double first.
 gmcs seems to be correct, this is only a "differs from csc" bugreport.
+------- Additional Comments From rharinath at novell.com  2006-06-15 07:28 -------
+Hmm, not really.  If there's an explicit conversion from S to T,
+there's an explicit nullable conversion from S to T? (Section 13.7.2
+Nullable conversions)
+So, a decimal -> double? explicit nullable conversion exists, which is
+defined in terms of
+  double -> decimal (explicit conversion)
+  decimal -> decimal? (wrapping)

More information about the mono-bugs mailing list