[Mono-bugs] [Bug 21099] Changed - Interface member lookup problem

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
28 Mar 2002 03:01:24 -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=21099

--- shadow/21099	Tue Mar 12 01:37:50 2002
+++ shadow/21099.tmp.26155	Wed Mar 27 22:01:24 2002
@@ -110,6 +110,41 @@
 I have been investigating this problem after doing some changes to the
 interface code, and I have noticed that the problem is that
 FindMembers will not pull data from inherited interfaces.  
 
 I believe the fix will be to actually walk the interface hierarchy
 filling in for members from inherited interfaces.
+
+------- Additional Comments From dihlewis@yahoo.co.uk  2002-03-27 22:01 -------
+Additional samples:
+
+
+
+interface A { }
+
+interface B : A { }
+
+class C : B { }
+
+class Test {
+        public static void Main () {
+                A a = new C ();
+        }
+}
+
+
+
+And here's an example from the corlib, where IList inherits from 
+ICollection, and so should have a Count method:
+
+
+
+using System;
+using System.Collections;
+
+class Test {
+        public static void Main () {
+                IList list = new ArrayList ();
+                int n = list.Count;
+        }
+}
+