check duplicate identifiers in parametric->/c
closes PR 15017
This commit is contained in:
parent
1a5e3e5953
commit
df9cd3342a
|
@ -16,6 +16,12 @@
|
|||
"expected an identifier"
|
||||
stx
|
||||
x)))
|
||||
(define dup (check-duplicate-identifier (syntax->list #'(x ...))))
|
||||
(when dup (raise-syntax-error
|
||||
'parametric->/c
|
||||
"duplicate identifier"
|
||||
stx
|
||||
dup))
|
||||
#`(make-polymorphic-contract opaque/c
|
||||
'(x ...)
|
||||
(lambda (x ...) c)
|
||||
|
|
Loading…
Reference in New Issue
Block a user