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

Switch expression spec missing static type #2380

Closed
srawlins opened this issue Aug 4, 2022 · 0 comments
Closed

Switch expression spec missing static type #2380

srawlins opened this issue Aug 4, 2022 · 0 comments
Labels
patterns Issues related to pattern matching.

Comments

@srawlins
Copy link
Member

srawlins commented Aug 4, 2022

The Patterns spec main doc has a Switch expression section and a Static semantics section (love this breakdown, btw), but I think neither address the static type of a switch expression.

I don't expect any surprises, as the branches cannot depend on each other... something like the LUB of all of the static types of the case expressions?

@srawlins srawlins added the patterns Issues related to pattern matching. label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patterns Issues related to pattern matching.
Projects
None yet
Development

No branches or pull requests

1 participant