Skip to content

Fix issue with certain synthetics missing in compiletime.typechecks #22978

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented Apr 11, 2025

Previously, instead of using the PostTyper phase directly, a typed tree Transformer was used. However, it did not transform the ClassInfo values using the PostTyper.transformInfo method, 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.

FIxes #22968

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.
@hamzaremmal hamzaremmal merged commit fbd8add into scala:main Apr 25, 2025
29 checks passed
@hamzaremmal hamzaremmal deleted the fix-i22968 branch April 25, 2025 11:47
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.

Defining an enum in typeCheckErrors always returns errors
2 participants