You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the sum-types branch (#1602), Cryptol will compile the following code without any warnings:
enum Foo = A | B
f : Foo -> Bit
f l =
case l of
_ -> True
B -> False
Then f A will evaluate to True and f B will evaluate to False. This is not desirable, since we'd like _ to be a catch-all case that covers all patterns not listed above it. We should change the behavior so that:
Both f A and f B evaluate to True.
Cryptol emits a warning that the _ case overlaps with the B case.
The text was updated successfully, but these errors were encountered:
On the sum-types branch (#1602), Cryptol will compile the following code without any warnings:
Then
f A
will evaluate toTrue
andf B
will evaluate toFalse
. This is not desirable, since we'd like_
to be a catch-all case that covers all patterns not listed above it. We should change the behavior so that:f A
andf B
evaluate toTrue
._
case overlaps with theB
case.The text was updated successfully, but these errors were encountered: