[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
Fri Dec 22 21:27:35 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 03:39:09.000000000 -0500
+++ shadow/80257.tmp.20960	2006-12-22 21:27:35.000000000 -0500
@@ -71,6 +71,20 @@
 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.
+
+------- Additional Comments From miguel at ximian.com  2006-12-22 21:27 -------
+I have for now changed the default "type" value that is assigned
+during MethodGroupExpr construction.  It was set to object_type and I
+have set it to typeof (MethodgroupExpr) which should force the
+compiler to call the resolution routines for resolving the type.
+
+I can no longer remember why the type is not set in MethodGroupExpr; 
+I guess that this is resolved if the MethodGroupExpr is part of an
+invocation and set there. 
+
+That fixes the issue, but am not completely happy about it.
+
+Running all the tests now.


More information about the mono-bugs mailing list