Fix parsing of dotted formals.
Closes PR 13576. original commit: ccc8b85cef665b310b5197fe2c145c85280f9bd1
This commit is contained in:
parent
8c1e485526
commit
ff5b594242
4
collects/tests/typed-racket/succeed/pr13576.rkt
Normal file
4
collects/tests/typed-racket/succeed/pr13576.rkt
Normal file
|
@ -0,0 +1,4 @@
|
|||
#lang typed/racket/base
|
||||
|
||||
(define: (A ...) (lister args : A ... A) : (List A ... A)
|
||||
args)
|
|
@ -80,7 +80,7 @@
|
|||
#:attributes (name ann-name bound ty formal-ty)
|
||||
#:literals (:)
|
||||
(pattern (~seq name:id : ty bnd:ddd/bound)
|
||||
#:with formal-ty #'(ty bnd)
|
||||
#:with formal-ty #'(ty . bnd)
|
||||
#:attr bound (attribute bnd.bound)
|
||||
#:with ann-name (syntax-property (syntax-property #'name 'type-label #'ty)
|
||||
'type-dotted (attribute bnd.bound))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user