We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Morphir elm will compile code with incomplete pattern matching. This can result in runtime errors.
To Reproduce The following code compiles:
type MyUnion = A | B foo : MyUnion -> String foo x = case x of A -> "A" bar : Int -> String bar i = foo B
When bar is run, it results in "Unable to compute", as makes sense given that the pattern match does not handle that case.
bar
Expected behavior Type checking should enforce that pattern matching is exhaustive.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Morphir elm will compile code with incomplete pattern matching. This can result in runtime errors.
To Reproduce
The following code compiles:
When
bar
is run, it results in "Unable to compute", as makes sense given that the pattern match does not handle that case.Expected behavior
Type checking should enforce that pattern matching is exhaustive.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: