Skip to content

Fix #5191: Don't lift the receiver of a call to a method with varargs #5192

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

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

allanrenucci
Copy link
Contributor

The receiver of a function is lifted if the call use default arguments.
To figure out if a default argument is needed, we compare the number of
passed arguments to the expected number of arguments.

Repeated arguments do not count as required arguments

…rargs

The receiver of a function is lifted if the call use default arguments.
To figure out if a default argument is needed, we compare the number of
passed arguments to the expected number of arguments.

Repeated arguments do not count as required arguments
Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@allanrenucci allanrenucci merged commit 3379e4b into scala:master Oct 2, 2018
@allanrenucci allanrenucci deleted the fix-5191 branch October 2, 2018 14:24
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.

2 participants