[Mono-bugs] [Bug 36314][Nor] New - using aliases not resolving correctly
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sun, 5 Jan 2003 04:08:49 -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 cdaly@locosoft.net.
http://bugzilla.ximian.com/show_bug.cgi?id=36314
--- shadow/36314 Sun Jan 5 04:08:49 2003
+++ shadow/36314.tmp.23194 Sun Jan 5 04:08:49 2003
@@ -0,0 +1,72 @@
+Bug#: 36314
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: cdaly@locosoft.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: using aliases not resolving correctly
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+
+This is observed with mcs 0.17. The test case below makes use
+of the fact that the right hand side of a using alias must
+be resolved in the context of other using aliases in the
+encplosing scope. In the test the alias Y should refer to namespace
+P1.P2 but this must be determined by resolving X to P1 in the
+definition of Y.
+
+
+namespace N1
+{
+ using X = P1;
+ namespace N2
+ {
+ using Y = X.P2;
+ namespace N3
+ {
+ public class Foo : Y.Bar
+ {
+ }
+ }
+ }
+}
+
+namespace P1
+{
+ namespace P2
+ {
+ public class Bar
+ {
+ }
+ }
+}
+
+Steps to reproduce the problem:
+1. compile the test case above
+2.
+3.
+
+Actual Results: compile error:
+
+Bug4.cs(9) error CS0246: Cannot find type `X.P2.Bar'
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results: successful compile.
+
+
+How often does this happen? always
+
+
+Additional Information: