Fix misuse of expected in tc-funapp.

original commit: eaafd418d977dd77507b56b6cd8e9f0db4fcc5b6
This commit is contained in:
Eric Dobson 2014-03-27 00:18:25 -07:00
parent c1a888eb1b
commit ace04bc75c
2 changed files with 10 additions and 1 deletions

View File

@ -53,7 +53,7 @@
;; if nothing matched, error
(domain-mismatches
f-stx args-stx t doms rests drests rngs argtys #f #f
#:expected expected #:return (if (tc-results? expected) expected (ret (Un)))
#:expected expected #:return (ret (Un))
#:msg-thunk (lambda (dom)
(string-append
"No function domains matched in function application:\n"

View File

@ -2679,6 +2679,15 @@
4)
-PosByte]
[tc-err
(let ()
(: z (case-> (Symbol -> Symbol)
(Number -> Number)))
(define z (lambda (a) a))
(z "y"))
#:ret (ret -String)
#:expected (ret -String -no-filter -no-obj)]
)
(test-suite
"tc-literal tests"