ligo/src/test/contracts/variant.religo
2020-03-02 18:01:56 +01:00

9 lines
140 B
Plaintext

type foobar =
Foo (int)
| Bar (bool)
| Kee (nat);
let foo: foobar = Foo (42);
let bar: foobar = Bar (true);
let kee: foobar = Kee (23n);