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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78416 --- 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- URL: -Cc: -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 [EMAIL PROTECTED] 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) + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
