[Mono-bugs] [Bug 72969][Nor] New - Missing CS0436 or similar error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 24 Feb 2005 09:33:38 -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 marek.safar@seznam.cz.

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

--- shadow/72969	2005-02-24 09:33:37.000000000 -0500
+++ shadow/72969.tmp.5173	2005-02-24 09:33:37.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 72969
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marek.safar@seznam.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Missing CS0436 or similar error
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Compile sample.
+
+Steps to reproduce the problem:
+
+namespace System
+{
+    public class Console
+    {
+    }
+}
+
+public class C
+{
+    public static void Main ()
+    {
+        new System.Console ();
+    }
+}
+
+Actual Results:
+
+
+No error, no warning
+
+Expected Results:
+
+csc 2.0 reports.
+
+
+warning CS0436: The type 'System.Console' in 'cs1595.cs' conflicts with the
+imported type 'System.Console' in
+'c:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\mscorlib.dll'. Using the one
+in 'cs1595.cs'.
+cs1595.cs(16,18): (Location of symbol related to previous warning)
+c:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\mscorlib.dll: (Location of
+symbol related to previous warning)