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

Also hoist lifted arguments in super calls #14919

Merged
merged 5 commits into from
Apr 16, 2022
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 13, 2022

Super calls with default and named parameters can have
lifted arguments in val defs preceding the constructor call.
If these are complex, we need to hoist them out as well.

Fixes #14164

Super calls with default and named parameters can have
lifted arguments in val defs preceding the constructor call.
If these are complex, we need to hoist them out as well.

Fixes scala#14164
@odersky
Copy link
Contributor Author

odersky commented Apr 13, 2022

Where can we find the jsunit test's source that fails? It seems to be really well hidden. I search of all of GitHub for NestedJSClassTest turned up nothing.

@odersky
Copy link
Contributor Author

odersky commented Apr 13, 2022

@som-snytt
Copy link
Contributor

Thanks, that was the area I was in. Sorry I didn't get back to it.

Oh, I see my local dotty is still spitting out "needs hoist" messages.

@odersky odersky assigned som-snytt and unassigned som-snytt Apr 15, 2022
@odersky odersky requested a review from dwijnand April 15, 2022 09:19
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

Perhaps it's worth keeping the test with a new hash result? It looks like you tried to run the overwrite, seeing as it updated the timestamp. But anyways, the string you need should be in that val result in def check.

Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

If that proves too hard, I'm fine with dropping it.

@odersky
Copy link
Contributor Author

odersky commented Apr 16, 2022 via email

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.

JVM crash: java.lang.VerifyError: Bad type on operand stack
4 participants