[Mono-bugs] [Bug 52493][Wis] New - We give the wrong error number for int i = null;
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 13:28:14 -0500 (EST)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=52493
--- shadow/52493 2003-12-23 13:28:14.000000000 -0500
+++ shadow/52493.tmp.3729 2003-12-23 13:28:14.000000000 -0500
@@ -0,0 +1,28 @@
+Bug#: 52493
+Product: Mono/Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We give the wrong error number for int i = null;
+
+class T {
+ static void Main () { int i = null; }
+}
+
+On MS this gives
+t.cs(2,32): error CS0037: Cannot convert null to 'int' because it is a
+value type
+
+While on MCS we get
+t.cs(2) error CS0031: Constant value `null' cannot be converted to int