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

Refine estimation of default arguments in overloading resolution #15962

Merged
merged 2 commits into from
Sep 4, 2022

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 4, 2022

When doing a "size-fits" check, we previously only worked with the fact
whether the given alternative had default parameters or not. We know count
the number of default parameters in the applied parameter section, which
gives us a better estimate.

Fixes #15898

When doing a "size-fits" check, we previously only worked with the fact
whether the given alternative had default parameters or not. We know count
the number of default parameters in the applied parameter section, which
gives us a better estimate.

Fixes scala#15898
Some tests for issues that have not been fixed
@KacperFKorban KacperFKorban merged commit b5fea82 into scala:main Sep 4, 2022
@KacperFKorban KacperFKorban deleted the fix-15898 branch September 4, 2022 19:49
@Kordyjan Kordyjan added this to the 3.2.2 milestone Aug 1, 2023
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.

Result of a method call is not accepted when by-name Unit value is expected once default values are used
3 participants