1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 01:52:11 +03:00
juvix/tests/positive/MiniC/PolymorphicTarget/Input.juvix

31 lines
335 B
Plaintext
Raw Normal View History

module Input;
type Unit :=
unit : Unit;
terminating
loop : {A : Type} -> A;
loop := loop;
const : {A : Type} -> A -> A -> A;
const x y := x;
fail : Unit;
fail := const unit loop;
axiom Action : Type;
compile Action {
c ↦ "int";
};
axiom Int_0 : Action;
compile Int_0 {
c ↦ "0";
};
main : Action;
main := Int_0;
end;