unison/unison-src/tests/r2.u
2023-02-27 11:13:10 -05:00

8 lines
177 B
Plaintext

structural type Optional a = None | Some a
r2 : Nat
r2 = match Optional.Some true with
Optional.Some true -> 1
Optional.Some false -> 0
Optional.None -> bug "unexpected"