Fix expected use in single-value.
This commit is contained in:
parent
29fb1c60c2
commit
750e408d94
|
@ -519,7 +519,7 @@
|
||||||
[(tc-result1: _ _ _) t]
|
[(tc-result1: _ _ _) t]
|
||||||
[_ (tc-error/expr
|
[_ (tc-error/expr
|
||||||
#:stx form
|
#:stx form
|
||||||
#:return (or expected (ret (Un)))
|
#:return (ret (Un))
|
||||||
"expected single value, got multiple (or zero) values")]))
|
"expected single value, got multiple (or zero) values")]))
|
||||||
|
|
||||||
;; type-check a body of exprs, producing the type of the last one.
|
;; type-check a body of exprs, producing the type of the last one.
|
||||||
|
|
|
@ -2613,6 +2613,10 @@
|
||||||
#:ret (ret (list -Symbol) (list -top-filter ) (list -empty-obj) Univ 'B)
|
#:ret (ret (list -Symbol) (list -top-filter ) (list -empty-obj) Univ 'B)
|
||||||
#:expected (ret (list -Symbol) (list -no-filter ) (list -no-obj) Univ 'B)]
|
#:expected (ret (list -Symbol) (list -no-filter ) (list -no-obj) Univ 'B)]
|
||||||
|
|
||||||
|
[tc-err (values (values 'x 'y))
|
||||||
|
#:ret (ret (-val 'x))
|
||||||
|
#:expected (ret (-val 'x) -no-filter -no-obj)]
|
||||||
|
|
||||||
)
|
)
|
||||||
(test-suite
|
(test-suite
|
||||||
"tc-literal tests"
|
"tc-literal tests"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user