Simplify poly drest case in tc-apply.
original commit: cee3a3f2e195556af36018660327fb86f7b86f07
This commit is contained in:
parent
5517b7c5a5
commit
6c069c38bd
|
@ -98,12 +98,11 @@
|
|||
(list (-Tuple domain))
|
||||
range))
|
||||
=> finish]
|
||||
;; ... function, ... arg
|
||||
;; ... function
|
||||
[(and drest
|
||||
tail-bound
|
||||
(eq? tail-bound (cdr drest))
|
||||
(= (length domain) (length arg-tys))
|
||||
(infer vars null (cons tail-ty arg-tys) (cons (car drest) domain)
|
||||
(infer vars null
|
||||
(list (-Tuple* arg-tys full-tail-ty))
|
||||
(list (-Tuple* domain (make-ListDots (car drest) (cdr drest))))
|
||||
range))
|
||||
=> finish]
|
||||
[else #f]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user