Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport "Fix regression #17245: Overloaded methods with ClassTags" #18329

Merged
merged 1 commit into from
Aug 9, 2023

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