[Mono-bugs] [Bug 26723][Maj] New - mcs does not find a inner class defined in an external assembly

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 Jun 2002 20:16:30 -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 gonzalo@ximian.com.

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

--- shadow/26723	Thu Jun 20 16:16:30 2002
+++ shadow/26723.tmp.31044	Thu Jun 20 16:16:30 2002
@@ -0,0 +1,75 @@
+Bug#: 26723
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not find a inner class defined in an external assembly
+
+Description of Problem:
+mcs does not find an inner class defined in an external assembly.
+
+
+Steps to reproduce the problem:
+1. Compile this and generate a dll:
+--begin---
+namespace X {
+public class A
+{
+	public class B
+	{
+		public int i;
+		public B ()
+		{
+			i = 1;
+		}
+	}
+		
+}
+}
+--end---
+2. Then compile this referencing the previous dll:
+--begin---
+namespace Y {
+using X;
+public class C : A
+{
+	public B method ()
+	{
+		return new B ();
+	}
+
+	public static void Main ()
+	{
+		C c = new C ();
+	}
+	
+}
+} 
+--end---
+
+Actual Results:
+~/work/tests $ mono ../../go-mono/install/bin/mcs.exe -r buxx.dll buxx2.cs
+buxx2.cs(5) error CS0246: Cannot find type `B'
+Error: Compilation failed
+
+Expected Results:
+Compiled exe.
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+This is the cause of the remaining 5 compilation errors to compile
+System.Web in linux.