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

Refine treatment of TypeBounds in patterns #13881

Merged
merged 1 commit into from Nov 5, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 4, 2021

Only map type bounds to pattern-bound symbols at the toplevel of a pattern, or
when they appear as type arguments. Do not map them in refinements.

Fixes #13820

Only map type bounds to pattern-bound symbols at the toplevel of a pattern, or
when they appear as type arguments. Do not map them in refinements.

Fixes scala#13820
@dwijnand dwijnand merged commit 673698d into scala:master Nov 5, 2021
@dwijnand dwijnand deleted the fix-13820 branch November 5, 2021 22:23
@Kordyjan Kordyjan added this to the 3.1.2 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.

Lost type member bounds for refined pattern types
3 participants