[Mono-bugs] [Bug 36171][Min] Changed - mcs does not complain when a using-directive refers to a non-existent namespace

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
30 Dec 2002 00:34:50 -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=36171

--- shadow/36171	Sun Dec 29 19:30:31 2002
+++ shadow/36171.tmp.10005	Sun Dec 29 19:34:50 2002
@@ -1,14 +1,14 @@
 Bug#: 36171
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mathpup@mylinuxisp.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -45,6 +45,26 @@
 Additional Information:
 
 ------- Additional Comments From mathpup@mylinuxisp.com  2002-12-29 19:30 -------
 Created an attachment (id=3041)
 Test case
 
+
+------- Additional Comments From mathpup@mylinuxisp.com  2002-12-29 19:34 -------
+I found a slight variation of the above situation that mcs also fails to flag as an 
+error, and I'm not entirely sure if it's the same issue or not. It comes from an 
+example in ECMA 16.3.1: 
+ 
+namespace N1.N2 {} 
+ 
+namespace N3 
+{ 
+	using R1 = N1;		// OK 
+	using R2 = N1.N2;	// OK 
+	using R3 = R1.N2;	// Error, R1 unknown 
+} 
+ 
+mcs does not complain about the "using R3 = R1.N2", but I'm not sure 
+whether it's because mcs doesn't complain about using-directives where the 
+namesapce in question is not found (i.e. the original bug above), or whether 
+this is a separate issue. Another test case is in namespace4.cs, attached. 
+