Fix Values in type annotations

Closes PR 14218
This commit is contained in:
Asumu Takikawa 2014-07-28 12:09:29 -04:00
parent d2a8bfcfe6
commit 8f08418699
2 changed files with 9 additions and 1 deletions

View File

@ -848,7 +848,7 @@
(define (parse-tc-results stx)
(syntax-parse stx
[(:values^ t ...)
[((~or :Values^ :values^) t ...)
(ret (parse-types #'(t ...))
(stx-map (lambda (x) -no-filter) #'(t ...))
(stx-map (lambda (x) -no-obj) #'(t ...)))]

View File

@ -3175,6 +3175,14 @@
(raise 'foo))
#:ret (ret -String)
#:msg #rx"expected: Symbol.*given: Any"]
;; PR 14218
[tc-e (ann (values "foo" "bar") (Values String String))
#:ret (ret (list -String -String))]
[tc-e (let ()
(tr:define (foo) : (Values String String) (values "foo" "bar"))
(void))
-Void]
)
(test-suite