[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
Wed, 7 Jan 2004 10:29:16 -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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52493

--- shadow/52493	2004-01-07 10:29:16.000000000 -0500
+++ shadow/52493.tmp.8672	2004-01-07 10:29:16.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 52493
+Product: Mono/Compilers
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: RESOLVED   
+Resolution: WONTFIX
+Severity: Unknown
+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
+
+------- Additional Comments From miguel@ximian.com  2004-01-07 10:29 -------
+Not going to fix this, not worth it.