зеркало из https://github.com/mono/mail-archives.git
110 строки
3.8 KiB
HTML
110 строки
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 21145] New - Type lookup problem in delegate declaration
|
|
</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="000033.html">
|
|
<LINK REL="Next" HREF="000035.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 21145] New - Type lookup problem in delegate declaration
|
|
</H1>
|
|
<B>bugzilla-daemon@rocky.ximian.com
|
|
</B>
|
|
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 21145] New - Type lookup problem in delegate declaration">bugzilla-daemon@rocky.ximian.com
|
|
</A><BR>
|
|
<I>27 Feb 2002 20:47:18 -0000</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="000033.html">[Mono-bugs] [Bug 21099] Changed - Interface member lookup problem
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000035.html">[Mono-bugs] [Bug 21147] New - Reflection
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#34">[ date ]</a>
|
|
<a href="thread.html#34">[ thread ]</a>
|
|
<a href="subject.html#34">[ subject ]</a>
|
|
<a href="author.html#34">[ 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=21145">http://bugzilla.ximian.com/show_bug.cgi?id=21145</A>
|
|
|
|
--- shadow/21145 Wed Feb 27 15:47:18 2002
|
|
+++ shadow/21145.tmp.23861 Wed Feb 27 15:47:18 2002
|
|
@@ -0,0 +1,45 @@
|
|
+Bug#: 21145
|
|
+Product: Mono/MCS
|
|
+Version: unspecified
|
|
+OS:
|
|
+OS Details:
|
|
+Status: NEW
|
|
+Resolution:
|
|
+Severity:
|
|
+Priority: Normal
|
|
+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: Type lookup problem in delegate declaration
|
|
+
|
|
+Description of Problem:
|
|
+The type lookup uses Delegate.Parent as the TypeContainer (Delegate is
|
|
+not a TypeContainer like class and structs are) but this removes a full
|
|
+level of possible targets for the type search.
|
|
+
|
|
+More detailed information:
|
|
+By looking for the type in the Parent, the search for the type does not
|
|
+try to get 'N1'+'A' where 'A' is the type we are looking for and 'N1' is
|
|
+the namespace where the delegate is declared.
|
|
+
|
|
+This type lookup problem is similar to bug_21092 where the same one level
|
|
+jump is done. The difference is that 'Interface' is a 'DeclSpace' and
|
|
+this allows for a RootContext.LookupType but in the Delegate i can't find
|
|
+information that lead the type search to the correct type.
|
|
+
|
|
+Additional Information:
|
|
+Using snapshot of Feb-26-02
|
|
+
|
|
+Source code to reproduce the problem:
|
|
+namespace N1
|
|
+{
|
|
+ public class A
|
|
+ {
|
|
+ }
|
|
+ public delegate void B(object sender, N1.A a);//<- works
|
|
+ public delegate void C(object sender, A a);//<-fails
|
|
+}
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="000033.html">[Mono-bugs] [Bug 21099] Changed - Interface member lookup problem
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000035.html">[Mono-bugs] [Bug 21147] New - Reflection
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#34">[ date ]</a>
|
|
<a href="thread.html#34">[ thread ]</a>
|
|
<a href="subject.html#34">[ subject ]</a>
|
|
<a href="author.html#34">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|