1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-07 16:22:14 +03:00
juvix/tests/positive/272/M.juvix

23 lines
318 B
Plaintext
Raw Normal View History

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;