[Mono-bugs] [Bug 26613][Min] New - need to consider interfaces that implement interfaces at type creation

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 Jun 2002 13:39:03 -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=26613

--- shadow/26613	Thu Jun 20 09:39:03 2002
+++ shadow/26613.tmp.18975	Thu Jun 20 09:39:03 2002
@@ -0,0 +1,40 @@
+Bug#: 26613
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: need to consider interfaces that implement interfaces at type creation
+
+When a type implements an interface that itself implements (or derives, or
+whatever the correct term is in that case), all the interfaces need to be
+added to the type or you'll get a type load error.
+The test below was extracted from the real case that happens in system.dll.
+Compile and PEVerify the binary.
+interface A {
+        void stuff ();
+}
+interface B: A {
+        void stuff2 ();
+}
+class T: B {
+        public void stuff () {}
+        public void stuff2 () {}
+        static void Main() {}
+}
+
+If you try to run the binary you also get a better (if a little confusing)
+error message.
+If you check with monodis --interface, you'll note that T is recorded to
+implement only B, while it implements A, too.
+The bug happens with either runtime.