1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/tests/positive/272/M.juvix

25 lines
317 B
Plaintext

module M;
type Bool :=
true : Bool
| false : Bool;
type T :=
t : T;
type Nat :=
zero : Nat
| suc : Nat → Nat;
f : _;
f false false := true;
f true _ := false;
type Pair (A : Type) (B : Type) :=
mkPair : A → B → Pair A B;
g : _;
g (mkPair (mkPair zero false) true) := mkPair false zero;
end;