1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-02 23:43:01 +03:00
juvix/tests/negative/Internal/LazyBuiltin.juvix

15 lines
213 B
Plaintext

module LazyBuiltin;
builtin bool type Bool :=
| true : Bool
| false : Bool;
builtin bool-if if : {A : Type} -> Bool -> A -> A -> A;
if true x _ := x;
if false _ x := x;
f : Bool -> Bool;
f x := if x;
end;