[Mono-bugs] [Bug 79566][Nor] New - as keyword doesn't work with nullable value types
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Oct 3 09:47:26 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 pedro at sobota.net.
http://bugzilla.ximian.com/show_bug.cgi?id=79566
--- shadow/79566 2006-10-03 09:47:26.000000000 -0400
+++ shadow/79566.tmp.18797 2006-10-03 09:47:26.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 79566
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: pedro at sobota.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: as keyword doesn't work with nullable value types
+
+Differently from csc, using as with a nullable value type doesn't compile:
+
+class Global {
+ static void Main() {
+ Console.Write(2 as int?);
+ }
+}
+
+CS0077: The as operator must be used with a
+reference type ('int?' is a value type).
More information about the mono-bugs
mailing list