[Mono-bugs] [Bug 79301][Nor] Changed - [GMCS] does not compile arithmetic operations requiring lifted conversion
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Sep 24 07:40:45 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 marek.safar at seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=79301
--- shadow/79301 2006-09-08 04:02:20.000000000 -0400
+++ shadow/79301.tmp.8819 2006-09-24 07:40:45.000000000 -0400
@@ -48,6 +48,19 @@
------- Additional Comments From rharinath at novell.com 2006-09-08 04:02 -------
Hmm. I'm puzzled how this can work. 'null' can be lifted to _any_
nullable type, so why is this not ambiguous? What's special about
Nullable<int>?
+
+------- Additional Comments From marek.safar at seznam.cz 2006-09-24 07:40 -------
+It seems to me, that during constant folding null -> int conversion is
+allowed.
+
+When I tried
+
+byte? i = null / null;
+
+I got
+
+error CS0266: Cannot implicitly convert type 'int?' to 'byte?'. An
+explicit conversion exists (are you missing a cast?)
More information about the mono-bugs
mailing list