[Mono-bugs] [Bug 57200][Min] New - mcs does not report CS0234: type fullname is not allowed in the overrapped namespace

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Apr 2004 22:55:26 -0400 (EDT)


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 atsushi@ximian.com.

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

--- shadow/57200	2004-04-18 22:55:26.000000000 -0400
+++ shadow/57200.tmp.28781	2004-04-18 22:55:26.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 57200
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not report CS0234: type fullname is not allowed in the overrapped namespace
+
+Description of Problem:
+
+Due to the error CS0234, type fullname should not be allowed in the
+overrapped namespace. In the example below, since the namespace ends with
+"System", and "System.Type.GetType(...)" is ambiguous, it should be just
+"Type.GetType(...)".
+
+using System;
+
+namespace MonoTests.System
+{
+	public class Test
+	{
+		public static void Main ()
+		{
+			Console.WriteLine (System.Type.GetType ("System.String"));
+		}
+	}
+}
+
+
+Actual Results:
+mcs compiles without error.
+
+Expected Results:
+cs0234.cs(9,23): error CS0234: The type or namespace name 'Type' does not
+exist in the class or namespace 'MonoTests.System' (are you missing an
+assembly reference?)
+
+How often does this happen? 
+always.