Skip to content

Commit b87e6a4

Browse files
committed
Make polydotted case more standard.
1 parent 1d43b58 commit b87e6a4

File tree

1 file changed

+4
-5
lines changed
  • pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/typecheck

1 file changed

+4
-5
lines changed

pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/typecheck/tc-apply.rkt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,11 @@
9595
(list (-Tuple* domain (make-Listof rest)))
9696
range))
9797
=> finish]
98-
;; ... function, ... arg
99-
[(and drest tail-bound
100-
(= (length domain) (length arg-tys))
98+
;; ... function
99+
[(and drest
101100
(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)
101+
(list (-Tuple* arg-tys full-tail-ty))
102+
(list (-Tuple* domain (make-ListDots (car drest) (cdr drest))))
104103
range))
105104
=> finish]
106105
;; ... function, (Listof A) or (List A B C etc) arg

0 commit comments

Comments
 (0)