coalton icon indicating copy to clipboard operation
coalton copied to clipboard

Monomorphizer fails on over-application

Open aijony opened this issue 2 years ago • 0 comments

(coalton-toplevel
  (define (f x y)
    (+ x y))

  (declare g (Num :a => :a -> :a))
  (define g
    (f 2))

  (monomorphize)
  (declare h (Integer -> Integer))
  (define (h y)
    (g y)))

Errors with: The bounding indices 2 and COMMON-LISP:NIL are bad for a sequence of length 1.

aijony avatar Jun 14 '22 20:06 aijony