[Mono-bugs] [Bug 45520][Wis] New - regression: MCS 0.25 is not able to resolve alias to nested class

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 27 Jun 2003 03:43:50 -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 gert.driesen@pandora.be.

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

--- shadow/45520	Fri Jun 27 03:43:50 2003
+++ shadow/45520.tmp.2359	Fri Jun 27 03:43:50 2003
@@ -0,0 +1,45 @@
+Bug#: 45520
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: Windows 2003
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: regression: MCS 0.25 is not able to resolve alias to nested class
+
+mcs (0.25) is not able to resolve an alias to a nested class.
+
+for example : 
+
+when you have the following class :
+
+namespace log4net.Appender {
+	public class RemoteLogging {
+		public class RemoteLoggingSink {
+			public virtual void LogEvents(object[] events) {
+			}
+		}
+	}
+}
+	
+and you declare an alias using directive for 
+log4net.Appender.RemoteLogging.RemoteLoggingSink, eg.
+
+using RemoteLoggingSink = log4net.Appender.RemoteLogging.RemoteLoggingSink;
+
+mcs cannot resolve the type, and fail with the following error message :
+
+error CS0246: Cannot find type `RemoteLoggingSink'
+
+The exact same code does compile using csc.
+
+I've include a test case that allows you to reproduce this issue.