[Mono-bugs] [Bug 74995][Nor] Changed - [GMCS] does not infer types
when a parameter is a delegate
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jun 20 16:43:00 EDT 2005
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 martin at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74995
--- shadow/74995 2005-06-20 13:13:48.000000000 -0400
+++ shadow/74995.tmp.19114 2005-06-20 16:43:00.000000000 -0400
@@ -52,6 +52,14 @@
Stupid Bugzilla - close as NOTABUG, not FIXED.
------- Additional Comments From dsilva at ccs.neu.edu 2005-06-20 13:13 -------
I don't understand -- why is it not possible for the inferrer see that
the first argument's type is int[] and the second's is (int ->
string), then fill in T and U for mapArray?
+
+------- Additional Comments From martin at ximian.com 2005-06-20 16:43 -------
+Not entirely sure (csc doesn't compile this code either), but my guess
+is that the reason is that the anonymous delegate's signature only
+contains T, but not U. U is only used in the delegate's return type,
+but that's not part of the signature.
+
+
More information about the mono-bugs
mailing list