[Mono-bugs] [Bug 81111][Nor] New - mcs is too restricitve when type clashes with predefined namespace

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 11 09:26:20 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=81111

--- shadow/81111	2007-03-11 08:26:20.000000000 -0500
+++ shadow/81111.tmp.26621	2007-03-11 08:26:20.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 81111
+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: mcs is too restricitve when type clashes with predefined  namespace
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+We should report a warning but we produce error.
+
+
+Steps to reproduce the problem:
+1.
+ 
+enum System { A }
+
+class X {
+	static void Main ()
+	{
+		System s = new System ();
+	}
+}
+
+Actual Results:
+
+?.cs(1,6): error CS0519: `System' clashes with a predefined namespace
+
+Expected Results:
+
+No error only CS0437 warning.
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list