fix errors from 8e7f390

This commit is contained in:
Andrew Kent 2016-12-20 12:36:26 -05:00
parent be155fa3e3
commit 3e13359ef3
4 changed files with 8 additions and 7 deletions

View File

@ -869,8 +869,10 @@
(or/c #f Values/c ValuesDots?))
((or/c #f Values/c AnyValues? ValuesDots?)
#:multiple? boolean?)
. ->* . (or/c #f substitution/c (cons/c substitution/c
(listof substitution/c))))
. ->* . (or/c boolean?
substitution/c
(cons/c substitution/c
(listof substitution/c))))
(define ctx (context null X Y ))
(define expected-cset
(if expected

View File

@ -53,8 +53,7 @@
expected)))))
(define/cond-contract
(let-loop-check lam lp actuals args body expected)
(define/cond-contract (let-loop-check lam lp actuals args body expected)
(syntax? syntax? syntax? syntax? syntax? tc-results/c . --> . full-tc-results/c)
(syntax-parse #`(#,args #,body #,actuals)
#:literal-sets (kernel-literals lambda-literals)

View File

@ -111,7 +111,7 @@
(ret (-Tuple argtys))))
(or result
(begin (expected-but-got t (-Tuple (map tc-expr/t args-list)))
expected))]
(fix-results expected)))]
[else (ret (-Tuple (map tc-expr/t args-list)))])])]
[_ (ret (-Tuple (map tc-expr/t args-list)))])))
;; special case for `list*'

View File

@ -71,8 +71,8 @@
(test-suite
"Test suite for fi"
[fi-t (make-ValuesDots null (-v a) 'a) [a variance:co]]
[fi-t (->... (list) ((-v a) (-v a)) (make-ValuesDots null (-v a) 'a))
[a variance:co]]))
[fi-t (->... (list) ((-lst (-v a)) b) -Symbol)
[b variance:contra]]))
(define-syntax (pd-t stx)
(syntax-parse stx