-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
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
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. |
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. |
Since we never housted arguments if the supercall had lifted parameters, we did not exercise that case before. Some fixes were necessary to make it work.
There was a problem hiding this 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
.
There was a problem hiding this 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.
I did not manage to update it. I don't really know how these tests are
supposed to work.
…On Sat, Apr 16, 2022 at 11:02 AM Dale Wijnand ***@***.***> wrote:
***@***.**** approved this pull request.
If that proves too hard, I'm fine with dropping it.
—
Reply to this email directly, view it on GitHub
<#14919 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGCKVSU2R7ZH2U2KKSIE63VFJ63PANCNFSM5TJ2LD2Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Martin Odersky
Professor, Programming Methods Group (LAMP)
Faculty IC, EPFL
Station 14, Lausanne, Switzerland
|
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