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

Better types for class type parameters #15951

Merged
merged 2 commits into from
Sep 9, 2022
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 2, 2022

If we see a class type parameter that has a wildcard argument, we now intersect
the original info of the class type parameter and the argument. Previously we
replaced the class type parameter info with the argument info, but that might lose
information.

Fixes #15940

If we see a class type parameter that has a wildcard argument, we now intersect
the original info of the class type parameter and the argument. Previously we
replaced the class type parameter info with the argument info, but that might lose
information.

Fixes scala#15940
@odersky odersky merged commit 968407a into scala:main Sep 9, 2022
@odersky odersky deleted the fix-15940 branch September 9, 2022 08:48
@Kordyjan Kordyjan added this to the 3.2.1 backports milestone Sep 15, 2022
@Kordyjan Kordyjan added the backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" label Sep 15, 2022
Kordyjan added a commit that referenced this pull request Sep 15, 2022
@Kordyjan Kordyjan added backport:done This PR was successfully backported. and removed backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" labels Sep 15, 2022
@Kordyjan Kordyjan modified the milestones: 3.2.1 backports, 3.2.2 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:done This PR was successfully backported.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typer regression in 3.2.0
3 participants