Uncaught TypeError: type mismatch
cannot unify the following types:
Number
(a1 => b1) => a1 => b1
in lambda #2
in argument #1
original fun: Number => Number
original arg: (a => b) => a => b
which doesn't make much sense and thus indicates either an implementation error at the term level or an invalid annotation of one of the nested lambdas.
While
yields the correct type
Yoneda<[], Number>
throws the type error
which doesn't make much sense and thus indicates either an implementation error at the term level or an invalid annotation of one of the nested lambdas.