We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d43b58 commit b87e6a4Copy full SHA for b87e6a4
pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/typecheck/tc-apply.rkt
@@ -95,12 +95,11 @@
95
(list (-Tuple* domain (make-Listof rest)))
96
range))
97
=> finish]
98
- ;; ... function, ... arg
99
- [(and drest tail-bound
100
- (= (length domain) (length arg-tys))
+ ;; ... function
+ [(and drest
101
(infer fixed-vars (list dotted-var)
102
- (cons (make-ListDots tail-ty tail-bound) arg-tys)
103
- (cons (make-ListDots (car drest) (cdr drest)) domain)
+ (list (-Tuple* arg-tys full-tail-ty))
+ (list (-Tuple* domain (make-ListDots (car drest) (cdr drest))))
104
105
106
;; ... function, (Listof A) or (List A B C etc) arg
0 commit comments