Overload resolution should be smarter about unambiguous Methods. #1550
Replies: 3 comments
-
Should this not have been resolved by "bestest betterness" or did that not apply to extension methods? |
Beta Was this translation helpful? Give feedback.
-
Actually, "bestest betterness" only removes candidates that don't meet the constraints. It doesn't attempt to determine a "best fit" set of constraints. |
Beta Was this translation helpful? Give feedback.
-
Correct. The new rules do allow overloading by generic constraint now, provided that the constraints don't overlap. Ergo, between |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions