ligo/test/contracts/variant.ligo

11 lines
151 B
Plaintext
Raw Normal View History

2019-05-13 00:56:22 +04:00
type foobar is
| Foo of int
| Bar of bool
| Kee of nat
const foo : foobar = Foo (42)
const bar : foobar = Bar (True)
const kee : foobar = Kee (23n)