Fix parsing of dotted formals.
Closes PR 13576.
This commit is contained in:
parent
1e910fcfbc
commit
ccc8b85cef
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)
|
#:attributes (name ann-name bound ty formal-ty)
|
||||||
#:literals (:)
|
#:literals (:)
|
||||||
(pattern (~seq name:id : ty bnd:ddd/bound)
|
(pattern (~seq name:id : ty bnd:ddd/bound)
|
||||||
#:with formal-ty #'(ty bnd)
|
#:with formal-ty #'(ty . bnd)
|
||||||
#:attr bound (attribute bnd.bound)
|
#:attr bound (attribute bnd.bound)
|
||||||
#:with ann-name (syntax-property (syntax-property #'name 'type-label #'ty)
|
#:with ann-name (syntax-property (syntax-property #'name 'type-label #'ty)
|
||||||
'type-dotted (attribute bnd.bound))))
|
'type-dotted (attribute bnd.bound))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user