[Mono-bugs] [Bug 34549][Nor] Changed - mcs incorrectly resolves some using-alias-directives

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
28 Nov 2002 04:45:41 -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.28887	Wed Nov 27 23:45:41 2002
@@ -1,14 +1,14 @@
 Bug#: 34549
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mathpup@mylinuxisp.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -50,6 +50,29 @@
  
 Always 
  
 Additional Information: 
  
 The error indicated under "Expected Results" is from csc.
+
+------- Additional Comments From mathpup@mylinuxisp.com  2002-11-27 23:45 -------
+I wanted to clarify that the way that using directives should be evaluated causes 
+some interesting subtleties. The following program, which is similar to the above, is 
+legal. 
+ 
+using A = System.Int32; 
+ 
+namespace Happy 
+{ 
+	using B = A; 
+ 
+	public class Testing 
+	{ 
+		public static void Main() 
+		{ 
+		} 
+	} 
+} 
+ 
+The significant difference is that each using-directive within a compilation unit or 
+namespace (whichever is smaller) is evaluated independently of the other 
+using-directives with that compilation unit or namespace.