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

Backport "Avoid stacked thisCall contexts" to 3.5.0 #20633

Merged

Conversation

WojciechMazur
Copy link
Contributor

Backports #20488 to 3.5.0-RC2

AddImplicitArgs can recursively add several implicit parameter lists.
We need to make sure we don't perform a thisCallContext search in another
thisCall context in this case.

Fixes scala#20483

The original code would back out further and further in the context chain for every
implicit parameter section on the secondary constructor. Eventually (in this case
after 3 times) bad things happen.
@WojciechMazur WojciechMazur merged commit e005369 into scala:release-3.5.0 Jun 20, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the backport-3.5.0/20488 branch June 20, 2024 06:57
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.

2 participants