Make polydotted * case in apply similar to other cases.
This commit is contained in:
parent
362747bfcd
commit
8ab29675d6
|
@ -140,12 +140,10 @@
|
||||||
(cond
|
(cond
|
||||||
;; the actual work, when we have a * function
|
;; the actual work, when we have a * function
|
||||||
[(and rest
|
[(and rest
|
||||||
(<= (length domain) (length arg-tys))
|
(infer fixed-vars (list dotted-var)
|
||||||
(infer/vararg fixed-vars (list dotted-var)
|
(list (-Tuple* arg-tys full-tail-ty))
|
||||||
(cons full-tail-ty arg-tys)
|
(list (-Tuple* domain (make-Listof rest)))
|
||||||
(cons (make-Listof rest) domain)
|
range))
|
||||||
rest
|
|
||||||
range))
|
|
||||||
=> finish]
|
=> finish]
|
||||||
;; ... function, ... arg
|
;; ... function, ... arg
|
||||||
[(and drest tail-bound
|
[(and drest tail-bound
|
||||||
|
|
Loading…
Reference in New Issue
Block a user