[Mono-bugs] [Bug 59343][Maj] New - regression: using statement with inner classes in referenced assemblies fails

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 31 May 2004 07:18:38 -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 vladimir@pobox.com.

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

--- shadow/59343	2004-05-31 07:18:38.000000000 -0400
+++ shadow/59343.tmp.12745	2004-05-31 07:18:38.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 59343
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vladimir@pobox.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: regression: using statement with inner classes in referenced assemblies fails
+
+This stopped working recently (recently = CVS as of 5 minutes ago), and
+worked with CVS as of about a week ago.  (It may be a runtime issue.)
+
+== ns0.cs ==
+namespace Foo {
+namespace Bar {
+        public class Baz {
+                public class Inner {
+                        public static void Frob() { }
+                }
+        }
+}
+}
+== end ==
+
+== ns.cs ==
+using Inner = Foo.Bar.Baz.Inner;
+public class Driver {
+        public static void Main () {
+                Inner.Frob();
+        }
+}
+== end ==
+
+vladimir@tornado[1131]% mcs /target:library ns0.cs
+Compilation succeeded
+vladimir@tornado[1133]% mcs ns.cs /r:ns0.dll
+ns.cs(2) error CS0246: The namespace `Foo.Bar.Baz.Inner' can not be found
+(missing assembly reference?)
+Compilation failed: 1 error(s), 0 warnings
+
+compiles fine with csc as well.