Support an empty (values) range in ->i
This commit is contained in:
parent
471f37158a
commit
07718022b4
|
@ -140,6 +140,10 @@
|
||||||
(contract-syntax-error-test
|
(contract-syntax-error-test
|
||||||
'->i-stx23
|
'->i-stx23
|
||||||
#'(->i ([f (f x) any/c]) (#:x [x any/c]) [res any/c]))
|
#'(->i ([f (f x) any/c]) (#:x [x any/c]) [res any/c]))
|
||||||
|
|
||||||
|
(test/spec-passed
|
||||||
|
'->i-stx24
|
||||||
|
'(->i () (values)))
|
||||||
|
|
||||||
(test/spec-passed
|
(test/spec-passed
|
||||||
'->i1
|
'->i1
|
||||||
|
|
|
@ -824,7 +824,8 @@ evaluted left-to-right.)
|
||||||
indy-arg-vars ordered-args indy-res-vars ordered-ress
|
indy-arg-vars ordered-args indy-res-vars ordered-ress
|
||||||
stx)
|
stx)
|
||||||
(cond
|
(cond
|
||||||
[(and (istx-ress an-istx)
|
[(and (positive? (vector-length res-proj-vars))
|
||||||
|
(istx-ress an-istx)
|
||||||
(andmap eres? (istx-ress an-istx)))
|
(andmap eres? (istx-ress an-istx)))
|
||||||
(for/fold ([body stx])
|
(for/fold ([body stx])
|
||||||
([an-arg/res (in-list (reverse (istx-ress an-istx)))]
|
([an-arg/res (in-list (reverse (istx-ress an-istx)))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user