Skip to content

Refrain from instantiating type variables to undetermined types #12294

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 30, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 30, 2021

When instantiating type variables before implicit search, refrain instantiating
them with bounds that are either Nothing or Any or that contain wildcard types.

Fixes #12247

When instantiating type variables before implicit search, refrain instantiating
them with bounds that are either Nothing or Any or that contain wildcard types.

Fixes scala#12247
@odersky odersky requested a review from smarter April 30, 2021 13:32
@smarter smarter merged commit c9d2826 into scala:master Apr 30, 2021
@smarter smarter deleted the fix-12247 branch April 30, 2021 14:56
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 2023
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: Type inference in lambda chooses Nothing instead of dependant type
3 participants