[Mono-bugs] [Bug 41975][Nor] New - Lookup failure, when namespace specified

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 26 Apr 2003 18:16:33 -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 miguel@ximian.com.

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

--- shadow/41975	Sat Apr 26 18:16:33 2003
+++ shadow/41975.tmp.27698	Sat Apr 26 18:16:33 2003
@@ -0,0 +1,38 @@
+Bug#: 41975
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Lookup failure, when namespace specified
+
+This bug only happens if there is a `using' statement, but the full
+namespace is provided anyways:
+
+using X;
+namespace X {
+
+public  class X {
+}
+}
+
+class D {
+        static void Main ()
+        {
+                X.X x = new X.X ();
+        }
+}
+
+Part of the problem is that MemberAccess is not doing a check for the first
+X being a namespace.  So it applies the `using' rule, which gets a match
+for type X.X.  Then it tries to lookup member "X" inside the resulting type.