1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-04 17:07:28 +03:00
juvix/tests/positive/Adt.juvix

22 lines
246 B
Plaintext
Raw Normal View History

module Adt;
type Bool :=
| true
| false;
type Pair (A B : Type) := mkPair A B;
type Nat :=
| zero
| suc Nat;
c1 : Bool := true;
c2 : Bool := false;
c3 : Pair Bool Bool := mkPair true false;
c4 : Nat := zero;
c5 : Nat := suc zero;