-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Discriminated union case with a union of discriminators not correctly excluded #54369
Comments
Huh. Jinx! π |
Duplicate of #31404. |
Ah indeed a duplicate, will close |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
5 similar comments
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
π Search Terms
discriminated union
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
The type of
t
isFoo | BarBaz
while all possible cases of it beingBarBaz
have been excluded.π Expected behavior
The type of
t
isFoo
.I can imagine that this might be quite hard to fix and might have been a design (or priority) choice, but I figured I'd still submit it since you might not have seen it yet.
The text was updated successfully, but these errors were encountered: