ligo/src/test/contracts/variant.religo

11 lines
142 B
Plaintext
Raw Normal View History

2019-12-10 13:47:31 +00:00
type foobar =
| Foo(int)
| Bar(bool)
| Kee(nat);
let foo: foobar = Foo(42);
let bar: foobar = Bar(true);
let kee: foobar = Kee(23n);