Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 28, 2024

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 #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 2 times) bad things happen.

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.
@odersky odersky requested a review from mbovel May 29, 2024 08:29
Copy link
Member

@mbovel mbovel left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@odersky odersky added this to the 3.5.0-RC2 milestone Jun 10, 2024
@odersky odersky merged commit dea3d10 into scala:main Jun 10, 2024
@odersky odersky deleted the fix-20483 branch June 10, 2024 14:53
@WojciechMazur WojciechMazur added backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" backport:done This PR was successfully backported. and removed backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" labels Jun 19, 2024
WojciechMazur added a commit that referenced this pull request Jul 9, 2024
Backports #20488 to the LTS branch. PR submitted by the release tooling. [skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:done This PR was successfully backported.

3 participants