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: record calls to constructors in lambdaLift #22487

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

KacperFKorban
Copy link
Member

@KacperFKorban KacperFKorban commented Jan 31, 2025

possible fix for #21931 #22470

Attempt no. 2 for #21931

@KacperFKorban
Copy link
Member Author

test performance please

@KacperFKorban KacperFKorban marked this pull request as ready for review February 6, 2025 14:49
@KacperFKorban KacperFKorban requested a review from odersky February 6, 2025 14:50
@Gedochao Gedochao linked an issue Feb 17, 2025 that may be closed by this pull request
if sym.is(Method)
then deps.logicalOwner.getOrElse(sym, sym.enclosure)
else sym.enclosure
deps.logicalOwner.getOrElse(sym, sym.enclosure)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was the isMethod test dropped?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was just my previous approach for solving this issue, so this is basically a revert. Turns out that picking the enclosure (if there is a logicalOwner set) here just isn't correct in some cases.

@KacperFKorban KacperFKorban removed their assignment Feb 18, 2025
@odersky odersky merged commit 417d542 into scala:main Feb 18, 2025
29 checks passed
@odersky odersky deleted the fix-i22470 branch February 18, 2025 15:44
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.

Regression in JVM backend when access closures from local class
2 participants