[Mono-bugs] [Bug 55770][Wis] New - mcs does not report CS0246 for "using" bound to non-fully-qualified class name

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 18 Mar 2004 15:40:54 -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 atsushi@ximian.com.

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

--- shadow/55770	2004-03-18 15:40:54.000000000 -0500
+++ shadow/55770.tmp.29164	2004-03-18 15:40:54.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 55770
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not report CS0246 for "using" bound to non-fully-qualified class name
+
+When using "using" keyword to specify class name alias, csc requires fully 
+qualified class name, while mcs does not.
+
+
+using System;
+using System.Xml;
+
+using Document = XmlDocument; // csc requires System.Xml.XmlDocument here.
+
+public class Test
+{
+	public static void Main ()
+	{
+	}
+}
+
+Actual Results:
+Compiles successfully.
+
+Expected Results:
+using.cs(4,18): error CS0246: The type or namespace name 'XmlDocument' 
+could not be found (are you missing a using directive or an assembly 
+reference?)
+
+How often does this happen? 
+always.