Skip to content

Freshen all explicit arguments of type applications#24354

Merged
odersky merged 2 commits intoscala:mainfrom
dotty-staging:freshen-typearg
Nov 12, 2025
Merged

Freshen all explicit arguments of type applications#24354
odersky merged 2 commits intoscala:mainfrom
dotty-staging:freshen-typearg

Conversation

@odersky
Copy link
Copy Markdown
Contributor

@odersky odersky commented Nov 6, 2025

Map all ^s in explicit type arguments of TypeApply's to fresh caps. Previously, we did not do that, which means that explicit arguments in TypeApply's could not contain ^.

This precaution should no longer be needed with level checking.

Inferred arguments were already freshened before.

@odersky
Copy link
Copy Markdown
Contributor Author

odersky commented Nov 6, 2025

Yichen, can you go through the changed test results and make sure that we don't introduce unsoundness anywhere? I already went over them but it's good to have a second pair of eyes.

Copy link
Copy Markdown
Contributor

@Linyxus Linyxus left a comment

Choose a reason for hiding this comment

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

I went through them. LGTM!

Previously, we did not do that, which means that explicit arguments in TypeApply's
could not contain `^`.

This precaution shoul dnot longer be needed with level checking.
@odersky odersky merged commit 202e26e into scala:main Nov 12, 2025
53 checks passed
@odersky odersky deleted the freshen-typearg branch November 12, 2025 14:48
@WojciechMazur WojciechMazur added this to the 3.8.1 milestone Jan 13, 2026
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.

5 participants