mail-archives/mono-bugs/2002-February/000029.html

113 строки
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 21099] New - Interface member lookup problem
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="000028.html">
<LINK REL="Next" HREF="000030.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 21099] New - Interface member lookup problem
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 21099] New - Interface member lookup problem">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>26 Feb 2002 21:06:40 -0000</I>
<P><UL>
<LI> Previous message: <A HREF="000028.html">[Mono-bugs] [Bug 21061] Changed - mcs doesn't always box value types
</A></li>
<LI> Next message: <A HREF="000030.html">[Mono-bugs] [Bug 21083] Changed - Undefined interface base type
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#29">[ date ]</a>
<a href="thread.html#29">[ thread ]</a>
<a href="subject.html#29">[ subject ]</a>
<a href="author.html#29">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:f_ai@hotmail.com.">f_ai@hotmail.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=21099">http://bugzilla.ximian.com/show_bug.cgi?id=21099</A>
--- 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: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:f_ai@hotmail.com">f_ai@hotmail.com</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+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();//&lt;- works declared in 'B'
+ p.method1();//&lt;- fails declared in 'A'
+ }
+ }
+}
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="000028.html">[Mono-bugs] [Bug 21061] Changed - mcs doesn't always box value types
</A></li>
<LI> Next message: <A HREF="000030.html">[Mono-bugs] [Bug 21083] Changed - Undefined interface base type
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#29">[ date ]</a>
<a href="thread.html#29">[ thread ]</a>
<a href="subject.html#29">[ subject ]</a>
<a href="author.html#29">[ author ]</a>
</LI>
</UL>
</body></html>