ligo/src/test/contracts/empty_case.ligo

10 lines
127 B
Plaintext
Raw Normal View History

2020-01-03 13:01:13 +00:00
type foo is
| Bar of int
| Baz
function main (const f: foo) : int is
(case f of
| Bar (n) -> n
| Baz -> -1
end)