1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-05 22:46:08 +03:00
juvix/tests/positive/Operators.mjuvix
2022-02-23 10:59:56 +01:00

15 lines
294 B
Plaintext

module Operators;
infixl 5 + ;
axiom + : Type → Type → Type;
plus : Type → Type → Type;
plus ≔ (+);
plus2 : Type → Type → Type → Type;
plus2 a b c ≔ a + b + c;
plus3 : Type → Type → Type → Type → Type;
plus3 a b c d ≔ (+) (a + b) ((+) c d);
end;