Skip to content

Conversation

Kordyjan
Copy link
Contributor

@Kordyjan Kordyjan commented Aug 2, 2023

Backports #18286

Before the regression, FunctionOf unapply would not try dealiasing,
meaning that an aliased function type would be handled by a general
case.
To fix that, instead of handling Function types separately when
filtering overloaded methods in `resolveOverloaded1`, we allow to
fallback to the general case if the previous one returns nothing.
Along with fixing the regression, this also improves other cases,
one of which was added to the test.

Readd a separate FunctionOf case, but with a fallback
@Kordyjan Kordyjan mentioned this pull request Aug 9, 2023
18 tasks
@Kordyjan Kordyjan merged commit 35f07b2 into scala:release-3.3.1 Aug 9, 2023
@Kordyjan Kordyjan deleted the backport-18286 branch August 9, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants