[Mono-bugs] [Bug 22667] New - Using directive not working with aliases

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
28 Mar 2002 03:41:03 -0000


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 dihlewis@yahoo.co.uk.

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

--- shadow/22667	Wed Mar 27 22:41:03 2002
+++ shadow/22667.tmp.26488	Wed Mar 27 22:41:03 2002
@@ -0,0 +1,45 @@
+Bug#: 22667
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dihlewis@yahoo.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Using directive not working with aliases
+
+The using directive can be used to alias a namespace or class name. The 
+code samples below failed to compile: "Cannot find type X"
+
+
+
+using MyColections = System.Collections;
+
+class Test {
+        public static void Main () {
+                MyCollections.ArrayList list = new MyCollections.ArrayList 
+();
+        }
+}
+
+
+
+Here's an example with a class alias:
+
+
+
+using MyList = System.Collections.ArrayList;
+
+class Test {
+        public static void Main () {
+                MyList list = new MyList ();
+        }
+}