[Mono-bugs] [Bug 81329][Nor] New - Missing CS0134 error

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Apr 6 18:58:57 EDT 2007


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=81329

--- shadow/81329	2007-04-06 18:58:57.000000000 -0400
+++ shadow/81329.tmp.13468	2007-04-06 18:58:57.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 81329
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Missing CS0134 error
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+
+class C
+{
+    public static void Main()
+    {
+        const object o = null;
+        const string s = (string)o;
+    }
+}
+
+Actual Results:
+
+No error.
+
+Expected Results:
+
+error CS0134: `s' is of type `string.' A const of reference type other than
+string can only be initialized with null
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list