The following code:
==========================
kind pair type -> type -> type.
type pr A -> B -> pair A B.
type p (pair int string) -> o.
% Instead of p (pr 3 "abc").
p 3 "abc".
==========================
Gives the following error:
Error : clash in operator and operand types
expected operand type: (pair string int)
actual operand type: int
in expression: p 3
Notice that the order of arguments for the pair is reversed.
Original issue reported on code.google.com by fafounet@gmail.com on 12 Jul 2013 at 12:29
Original issue reported on code.google.com by
fafounet@gmail.com
on 12 Jul 2013 at 12:29