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

Fix variable handling in super calls #13639

Merged
merged 2 commits into from Sep 30, 2021
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 29, 2021

Accesses to var parameters in super calls need to refer to the constructor
parameter, not the getter.

Fixes #13630

Accesses to var parameters in super calls need to refer to the constructor
parameter, not the getter.

Fixes scala#13630
@smarter smarter merged commit 401323c into scala:master Sep 30, 2021
@smarter smarter deleted the fix-13630 branch September 30, 2021 08:19
@jlprat
Copy link

jlprat commented Sep 30, 2021

Any chance to have this backported to 3.1.0 and be part of an eventual 3.1.0-RC3 release?

@odersky
Copy link
Contributor Author

odersky commented Sep 30, 2021

Since there is a workaround, I think it's better to wait for 3.1.1, which will come 6 weeks later.

@jlprat
Copy link

jlprat commented Sep 30, 2021

That sounds fair 👍

@Kordyjan Kordyjan added this to the 3.1.1 milestone Aug 2, 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.

"VerifyError: Bad type on operand stack" when Class with var extends class with lambda
4 participants