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

Typecheck known enum values #357

Merged
merged 4 commits into from Oct 1, 2022
Merged

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Sep 30, 2022

Must enum values are constant, and can thus be known at compile time. Since services reject invalid enum values (sometimes in the middle of long deployments), we can and should verify that enum constants are valid at TypeCheck time.

Fixes #343

Must enum values are constant, and can thus be known at compile time.
Since services reject invalid enum values (sometimes in the middle of
long deployments), we can and should verify that enum constants are
valid at TypeCheck time.
@iwahbe iwahbe self-assigned this Sep 30, 2022
@iwahbe iwahbe merged commit 102f6d9 into main Oct 1, 2022
@iwahbe iwahbe deleted the iwahbe/343/typecheck-known-enum-values branch October 1, 2022 04:00
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.

Typecheck that enums receive a valid value
2 participants