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

Backport "A tweak to type improvement" to 3.5.2 #21474

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #21312 to the 3.5.2 branch.

PR submitted by the release tooling.
[skip ci]

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

[Cherry-picked 053c8f9]
Base automatically changed from release-3.5.x-21206 to 3.5.x August 28, 2024 11:52
@WojciechMazur WojciechMazur merged commit bdb5f1c into 3.5.x Aug 28, 2024
27 checks passed
@WojciechMazur WojciechMazur deleted the release-3.5.x-21312 branch August 28, 2024 11:52
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