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

A tweak to type improvement #21312

Merged
merged 2 commits into from
Aug 2, 2024
Merged

A tweak to type improvement #21312

merged 2 commits into from
Aug 2, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 1, 2024

When we replace Nothing by a fresh type variable, we should not accidentally instantiate that type variable to Any in case it is still undetermined. We achieve this by giving the type variable a slightly disguised version of Nothing which makes the compiler believe it has a lower bound.

Fixes #21275

When we replace Nothing by a fresh type variable, we should not accidentally
instantiate that type variable to Any in case it is still undetermined. We achieve
this by giving the type variable a slightly disguised version of Nothing which
makes the compiler believe it has a lower bound.

Fixes scala#21275
@odersky odersky merged commit ceb359b into scala:main Aug 2, 2024
28 checks passed
@odersky odersky deleted the fix-21725 branch August 2, 2024 08:58
WojciechMazur added a commit that referenced this pull request Aug 28, 2024
Backports #21312 to the 3.5.2 branch.

PR submitted by the release tooling.
[skip ci]
@WojciechMazur WojciechMazur added this to the 3.5.2 milestone Oct 8, 2024
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.

Regression in mjakubowski84/parquet4s for type inference
3 participants