[Mono-bugs] [Bug 357047] Invalid ambiguous method error with extension methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 31 19:45:14 EST 2008


User cmarshall at pacificbiosciences.com added comment

--- Comment #1 from Casey Marshall <cmarshall at pacificbiosciences.com>  2008-01-31 17:45:14 MST ---
Created an attachment (id=192676)
 --> (https://bugzilla.novell.com/attachment.cgi?id=192676)
Patch that fixes the test case

This patch seems to fix this test case, at least. It does tie-breaking by
choosing the function whose argument has an exact return value match of the
inferred return value of the anonymous method.

In other words, Func<T, double> is a better match than Func<T, double?>, if we
infer that the anonymous method returns a double.

I'm not sure if this is the correct place to do this check, or if this is the
best way to go about it. Comments welcome.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list