[Mono-bugs] [Bug 30457][Nor] New - Type lookup depends on declaration order

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
17 Sep 2002 09:55:56 -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 lupus@ximian.com.

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

--- shadow/30457	Tue Sep 17 05:55:56 2002
+++ shadow/30457.tmp.8283	Tue Sep 17 05:55:56 2002
@@ -0,0 +1,42 @@
+Bug#: 30457
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type lookup depends on declaration order
+
+This program doesn't compile with mcs:
+using System;
+namespace T {
+        class Impl : Array {
+                internal sealed override void stuff () {}
+                static void Main () {}
+        }
+        abstract class Array {
+                internal virtual void stuff () {}
+        }
+}
+But this one does (it's the same, only the Array class is declared earlier):
+using System;
+namespace T {
+        abstract class Array {
+                internal virtual void stuff () {}
+        }
+        class Impl : Array {
+                internal sealed override void stuff () {}
+                static void Main () {}
+        }
+}
+
+The bug happens also when running mcs on the ms runtime.