[Mono-bugs] [Bug 34549][Nor] New - mcs incorrectly resolves some using-alias-directives
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
25 Nov 2002 02:18:35 -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 mathpup@mylinuxisp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34549
--- shadow/34549 Sun Nov 24 21:18:35 2002
+++ shadow/34549.tmp.1323 Sun Nov 24 21:18:35 2002
@@ -0,0 +1,55 @@
+Bug#: 34549
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mathpup@mylinuxisp.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs incorrectly resolves some using-alias-directives
+
+Description of Problem:
+
+When handling using-alias-directives, resolving a typename or namespace is supposed to
+be done as though each directive were the only one in the immediate namespace or
+compilation unit. This is illustrated by the following program:
+
+using A=System.Int32;
+using B=A;
+
+public class Testing
+{
+ public static void Main()
+ {
+ }
+}
+
+
+Steps to reproduce the problem:
+1. Compile the program: mcs using.cs
+
+
+Actual Results:
+
+Successful compilation
+
+Expected Results:
+
+using.cs(2,9): error CS0246: The type or namespace name 'A' could not be found
+(are you missing a using directive or an assembly reference?)
+
+How often does this happen?
+
+Always
+
+Additional Information:
+
+The error indicated under "Expected Results" is from csc.