unison/unison-src/tests/guard-boolean-operators.u
2021-08-24 11:33:27 -07:00

12 lines
190 B
Plaintext

structural type Foo = Foo Boolean Boolean
f : Foo -> Boolean
f = cases
Foo.Foo a b | a || b -> true
_ -> false
g : Foo -> Boolean
g = cases
Foo.Foo a b | a && b -> true
_ -> false