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

Make union type "unknown" private to force use of default. #34

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

davidmorgan
Copy link
Contributor

@davidmorgan davidmorgan commented Aug 9, 2024

This stops people from writing switch statements over union types that will break at compile time when we add a type to a union.

Fix #24

@davidmorgan davidmorgan merged commit 3bba406 into dart-lang:main Aug 12, 2024
39 checks passed
@davidmorgan davidmorgan deleted the union-exhaustiveness branch August 12, 2024 07:23
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.

Union type switch exhaustiveness
2 participants