This commit is contained in:
Asumu Takikawa 2016-04-08 13:43:46 -04:00
parent 6621bd5b32
commit af385d6932
2 changed files with 9 additions and 1 deletions

View File

@ -320,7 +320,7 @@
(% move-dotted-rest-to-dmap (cgen (context-add-var context dbound) s-dty t-dty) dbound dbound*)))]
[((seq ss (dotted-end s-dty dbound))
(seq ts (dotted-end t-dty dbound*)))
#:when (inferable-index? context dbound*)
#:return-unless (inferable-index? context dbound*) #f
#:return-unless (= (length ss) (length ts)) #f
(% cset-meet
(cgen/list context ss ts)

View File

@ -0,0 +1,8 @@
#lang typed/racket
;; Test for github issue #336
(: foo ( (A ... B ...) ( (List ( A ... B) ...)
Any)))
(define (foo f)
(apply conjoin f))