Add test for PR 13937

The actual bug was already fixed by enabling multi-valued
sequence syntax in TR `for` loop forms.

Closes PR 13937
This commit is contained in:
Asumu Takikawa 2014-02-20 00:06:45 -05:00
parent a17e457840
commit 8d4b3ee396

View File

@ -2008,6 +2008,17 @@
#:ret (ret (-HT -Symbol -String) #:ret (ret (-HT -Symbol -String)
(-FS -top -top) (-FS -top -top)
(make-NoObject))] (make-NoObject))]
;; PR 13937
[tc-e (let ()
(: foo ((HashTable String Symbol) -> (HashTable Symbol String)))
(define (foo map)
(for/hash : (HashTable Symbol String)
([(str sym) map])
(values sym str)))
(foo #hash(("foo" . foo))))
(-HT -Symbol -String)]
;; call-with-input-string and friends - PR 14050 ;; call-with-input-string and friends - PR 14050
[tc-e (call-with-input-string "abcd" (lambda: ([input : Input-Port]) (values 'a 'b))) [tc-e (call-with-input-string "abcd" (lambda: ([input : Input-Port]) (values 'a 'b)))
#:ret (ret (list (-val 'a) (-val 'b)))] #:ret (ret (list (-val 'a) (-val 'b)))]