[Mono-bugs] [Bug 80257][Nor] Changed - Overload resolution makes explicit delegate casts fail.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Dec 14 03:39:09 EST 2006
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 miguel at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80257
--- shadow/80257 2006-12-14 02:58:34.000000000 -0500
+++ shadow/80257.tmp.9753 2006-12-14 03:39:09.000000000 -0500
@@ -61,6 +61,16 @@
The problem is that the overload resolution process is picking:
Register (object x)
As the best method to match instead of the delegate one
+
+------- Additional Comments From miguel at ximian.com 2006-12-14 03:39 -------
+Found part of the problem, but not the solution.
+
+The issue is that at the time that the overload resolution happens,
+the argument.Expr is set to a MethodGroupExpr that represents the method.
+
+But this MethodGroupExpr's Type is set to object_type which prevents
+it from ever being selected. So we need to find a way of resolving
+the type of the MethodGroupExpr by the time we get there.
More information about the mono-bugs
mailing list