..
original commit: be1f08327956757bfeb0b63591eb512876714272
This commit is contained in:
parent
7d524121f7
commit
b2ac2e69c5
|
@ -1473,10 +1473,10 @@
|
|||
(let ([dom-x dom] ...
|
||||
[rng-mk-x rng-mk])
|
||||
(unless (-contract? dom-x)
|
||||
(error '->*d "expected contract as argument, given: ~e" dom-x)) ...
|
||||
(error '->d* "expected contract as argument, given: ~e" dom-x)) ...
|
||||
(unless (and (procedure? rng-mk-x)
|
||||
(procedure-arity-includes? rng-mk-x dom-length))
|
||||
(error '->*d "expected range position to be a procedure that accepts ~a arguments, given: ~e"
|
||||
(error '->d* "expected range position to be a procedure that accepts ~a arguments, given: ~e"
|
||||
dom-length rng-mk-x))
|
||||
body))))
|
||||
(lambda (stx)
|
||||
|
@ -1542,11 +1542,11 @@
|
|||
[dom-rest-x rest]
|
||||
[rng-mk-x rng-mk])
|
||||
(unless (-contract? dom-x)
|
||||
(error '->*d "expected contract as argument, given: ~e" dom-x)) ...
|
||||
(error '->d* "expected contract as argument, given: ~e" dom-x)) ...
|
||||
(unless (-contract? dom-rest-x)
|
||||
(error '->*d "expected contract for rest argument, given: ~e" dom-rest-x))
|
||||
(error '->d* "expected contract for rest argument, given: ~e" dom-rest-x))
|
||||
(unless (procedure? rng-mk-x)
|
||||
(error '->*d "expected range position to be a procedure that accepts ~a arguments, given: ~e"
|
||||
(error '->d* "expected range position to be a procedure that accepts ~a arguments, given: ~e"
|
||||
arity rng-mk-x))
|
||||
body))))
|
||||
(lambda (stx)
|
||||
|
|
Loading…
Reference in New Issue
Block a user