Fix misuse of expected in tc-keywords.
This commit is contained in:
parent
eaafd418d9
commit
2bb3fa9138
|
@ -110,7 +110,7 @@
|
||||||
arities doms rests drests rngs
|
arities doms rests drests rngs
|
||||||
(stx-map tc-expr pos-args)
|
(stx-map tc-expr pos-args)
|
||||||
#f #f #:expected expected
|
#f #f #:expected expected
|
||||||
#:return (or expected (ret (Un)))
|
#:return (ret (Un))
|
||||||
#:msg-thunk
|
#:msg-thunk
|
||||||
(lambda (dom)
|
(lambda (dom)
|
||||||
(string-append "No function domains matched in function application:\n"
|
(string-append "No function domains matched in function application:\n"
|
||||||
|
|
|
@ -2688,6 +2688,17 @@
|
||||||
#:ret (ret -String)
|
#:ret (ret -String)
|
||||||
#:expected (ret -String -no-filter -no-obj)]
|
#:expected (ret -String -no-filter -no-obj)]
|
||||||
|
|
||||||
|
[tc-err
|
||||||
|
(let ()
|
||||||
|
(: z (case->
|
||||||
|
(-> Number #:b Symbol Number)
|
||||||
|
(-> Symbol #:b Symbol Symbol)))
|
||||||
|
(define z (lambda (a #:b b) a))
|
||||||
|
(z "y" #:b "y"))
|
||||||
|
#:ret (ret -String)
|
||||||
|
#:expected (ret -String -no-filter -no-obj)]
|
||||||
|
|
||||||
|
|
||||||
)
|
)
|
||||||
(test-suite
|
(test-suite
|
||||||
"tc-literal tests"
|
"tc-literal tests"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user