Add tests for two closed TR PRs

original commit: 89782125883555586ec07645ac798c8e28513ff6
This commit is contained in:
Asumu Takikawa 2014-11-14 10:41:05 -05:00
parent c3997a5f35
commit dcecff2c22
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#lang typed/racket/base
;; Test for PR 13870
(require racket/match)
(: sum ((Listof Integer) -> Integer))
(define (sum l)
(match l
[(list) 0]
[(list x xs ...) (+ x (sum xs))]))
(sum (list 1 2 3))

View File

@ -3343,6 +3343,13 @@
`(li ,elem)))
(void))
-Void]
;; PR 13653
[tc-e (let ()
(lambda: ((a : Symbol))
(ann (values a a) (Values Symbol Symbol)))
(void))
-Void]
)
(test-suite