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 "Fix enclosingClass from returning refinement classes" to 3.3 LTS #49

Closed
wants to merge 1 commit into from

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Feb 7, 2025

Backports scala#21411 to the 3.3.6.

PR submitted by the release tooling.
[skip ci]

Looking at how i20952 is compiled, the call

    ctx.owner.enclosingClass.derivesFrom(sym.owner)

in SuperAccessors (that I moved to ProtectedAccessors) accidentally
fails, because the refinement class returned as the enclosing class of
`val prog` doesn't derive from SuperClass.  But if the enclosing class
of `prog` returned is `trait Child` then no super accessor call is
necessary.

[Cherry-picked 15922f9]
@tgodzik tgodzik closed this Feb 13, 2025
@tgodzik tgodzik deleted the backport-lts-3.3-21411 branch February 13, 2025 18:41
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