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

Disallow some opaque type aliases in match type patterns #20913

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 1, 2024

Disallow opaque type aliases in match type patterns in scopes where the alias is visible.

@odersky
Copy link
Contributor Author

odersky commented Jul 2, 2024

This should give some protection against using opaque types in match type patterns improperly.

@odersky odersky marked this pull request as draft August 1, 2024 12:21
@odersky odersky force-pushed the change-opaque-matchtypes-1 branch from fa8d00b to 07ac3ed Compare February 16, 2025 10:16
Disallow opaque type aliases in match type patterns in scopes where the alias is visible.
@odersky odersky force-pushed the change-opaque-matchtypes-1 branch from 07ac3ed to 4d71bb4 Compare February 16, 2025 10:19
@odersky
Copy link
Contributor Author

odersky commented Feb 16, 2025

This was a left-over from last summer's named tuple work.

@odersky odersky marked this pull request as ready for review February 16, 2025 10:20
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