fix bug in polymorphic defns I introduced

This commit is contained in:
Sam Caldwell 2022-07-19 12:12:35 -04:00
parent 8af4464443
commit e4ca56a002
1 changed files with 2 additions and 1 deletions

View File

@ -1894,8 +1894,9 @@
(format "expected different return type\n got ~a\n expected ~a\n"
(resugar-type #'actual) (resugar-type #'expected))
#:with f- (add-orig (generate-temporary #'f) #'f)
#:with final-ty (type-eval #'(∀+ (X- ...) res-ty))
-------------------------------------------------------
[ (erased (define/intermediate f f- res-ty e-)) ( : ★/t)]]
[ (erased (define/intermediate f f- final-ty e-)) ( : ★/t)]]
[(_ ((~datum ) (X:id ...)
(f [x (~optional (~datum :)) ty] ...))
e ...+)