Skip to content

Backport "Fix mapping of annotations" to 3.3 LTS #194

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 3, 2025

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Apr 1, 2025

Backports scala#22407 to the 3.3.6.

PR submitted by the release tooling.
[skip ci]

We previously did not do an (expensive) TreeTypeMap on an annotation if the mapped versions
of all types of subtrees of the annotation tree were =:= to the original types. But it turns
out this is too coarse. In the test we have capture set variables where we intend to map a
TypeRef to a TypeParamRef but the two were considered as =:= because of the bounds they had.
So no mapping took place.

We now use `eql` instead of =:=, which is structural comparison with `eq` for references to
corresponding binders.

[Cherry-picked 6d6da11]
Base automatically changed from backport-lts-3.3-22401 to lts-3.3 April 3, 2025 13:32
@tgodzik
Copy link
Author

tgodzik commented Apr 3, 2025

No regressions detected in the community build up to backport-lts-3.3-22356.

Reference

@tgodzik tgodzik merged commit 0e94367 into lts-3.3 Apr 3, 2025
22 checks passed
@tgodzik tgodzik deleted the backport-lts-3.3-22407 branch April 3, 2025 13:32
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