Skip to content

Backport "Fix issue with certain synthetics missing in compiletime.typechecks" to 3.3 LTS #370

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

Open
wants to merge 1 commit into
base: backport-lts-3.3-23009
Choose a base branch
from

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Apr 28, 2025

Backports scala#22978 to the 3.3.7.

PR submitted by the release tooling.
[skip ci]

Previously, instead of using the PostTyper phase directly, a typed tree
Transformer was used. However, it did not transform the ClassInfo
values using PostTyper.transformInfo, which lead to RefChecks not
finding certain synthesized methods, throwing an incorrect error about
a missing implementation. This is fixed by running the full suite of
PostTyper transforms. A minor refactor is included, to limit
the repeated CompilationUnit construction and error checking.

[Cherry-picked 8f48a3b]
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