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
Incredibly we didn't notice until now.
-- == -- entry: test_sum -- script input { mk_sum 1i32 } -- output { false } type sum = #none | #color i32 entry mk_sum (x: i32) : sum = #color x entry test_sum (s: sum) = s != #none
It is internalisation that messes it up and compares even values from the unused constructors.
The text was updated successfully, but these errors were encountered:
Of course, a reasonable question could be if we should just ban equality on sum types in the type checker.
Sorry, something went wrong.
3b242d8
No branches or pull requests
Incredibly we didn't notice until now.
It is internalisation that messes it up and compares even values from the unused constructors.
The text was updated successfully, but these errors were encountered: