1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/tests/positive/MiniC/PolymorphicTarget/Input.juvix

31 lines
335 B
Plaintext

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;