[Mono-bugs] [Bug 75053][Cos] New - null is string causes wrong warning message

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 26 10:57:43 EDT 2005


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 nazgul at omega.pl.

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

--- shadow/75053	2005-05-26 10:57:43.000000000 -0400
+++ shadow/75053.tmp.10040	2005-05-26 10:57:43.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 75053
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: mono 1.1.7
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: C#
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: nazgul at omega.pl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: null is string causes wrong warning message
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+The warning is incorrect.
+
+Steps to reproduce the problem:
+1. Compile
+class A {
+  static void Main () { 
+    System.Console.WriteLine (null is string);
+  }
+}
+
+
+Actual Results:
+t.cs(3) warning CS0183: The given expression is always of the provided
+('string') type
+
+
+Expected Results:
+t.cs(3,31): warning CS0184: The given expression is never of the provided
+('string') type
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+The second message (correct one) is from csc. The runtime behaviour is correct.


More information about the mono-bugs mailing list