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

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
26 Feb 2002 21:06:40 -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 f_ai@hotmail.com.

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

--- shadow/21099	Tue Feb 26 16:06:40 2002
+++ shadow/21099.tmp.17273	Tue Feb 26 16:06:40 2002
@@ -0,0 +1,48 @@
+Bug#: 21099
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: f_ai@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Interface member lookup problem
+
+Description of Problem:
+Whe declaring an interface 'A' that inherits from 'B', the members of the 
+interface 'A' that are inherited from 'B', can not be invoked using 
+an 'A' type.
+
+Additional Information:
+Using snapshot of Feb-25-02
+
+Source code to reproduce the problem:
+namespace N1
+{	
+	interface A
+	{
+		void method1 ();
+	}
+	
+	interface B:A
+	{
+		void method2 ();
+	}
+
+	public class C
+	{
+		void method (ref B p)
+		{
+			p.method2();//<- works declared in 'B'
+			p.method1();//<- fails declared in 'A'
+		}
+	}
+}