[Mono-bugs] [Bug 22608] New - Nested sub-class compilation dependent on code ordering

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
27 Mar 2002 14:54:45 -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 dihlewis@yahoo.co.uk.

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

--- shadow/22608	Wed Mar 27 09:54:45 2002
+++ shadow/22608.tmp.10689	Wed Mar 27 09:54:45 2002
@@ -0,0 +1,35 @@
+Bug#: 22608
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dihlewis@yahoo.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Nested sub-class compilation dependent on code ordering
+
+class Outer {
+	class Inner : InnerBase {
+	}
+}
+
+abstract class InnerBase {
+}
+
+class MainClass {
+	public static void Main () {
+	}
+}
+
+
+This code breaks the compile with a "Bad type flags for nested type" 
+ArgumentException in TypeBuilder.Init(). [moving the definition of 
+InnerBase to before the definition of Outer avoids the exception.]