Skip to content

Fix #1776: Avoid interaction between parameter forwarding and elimByName #1781

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 2 commits into from
Dec 12, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 11, 2016

Parameter forwarding is not geared to handle parameters of by-name types correctly
and consequently elimByName generates wrong code. Since it's a corner case it's
easiest not applying the parameter forwarding optimization to by-name parameters.

…imByName

Parameter forwarding is not geared to handle parameters of by-name types correctly
and consequently elimByName generates wrong code. Since it's a corner case it's
easiest by not applying the parameter forwarding optimization to by-name parameters.
@odersky
Copy link
Contributor Author

odersky commented Dec 11, 2016

Review by @DarkDimius ?

@DarkDimius
Copy link
Contributor

LGTM

@DarkDimius DarkDimius merged commit 7775aab into scala:master Dec 12, 2016
odersky pushed a commit to dotty-staging/dotty that referenced this pull request Dec 14, 2016
Fix scala#1776: Avoid interaction between parameter forwarding and elimByName
@allanrenucci allanrenucci deleted the fix-#1776 branch December 14, 2017 16:59
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