Fix error message in define/contract.
svn: r14522
This commit is contained in:
parent
beeb832223
commit
b7063fc563
|
@ -87,7 +87,7 @@ improve method arity mismatch contract violation error messages?
|
||||||
define-stx)]
|
define-stx)]
|
||||||
[(_ name contract-expr)
|
[(_ name contract-expr)
|
||||||
(raise-syntax-error 'define/contract
|
(raise-syntax-error 'define/contract
|
||||||
"no body after contract"
|
"expected a contract expression and a definition body, but found only one expression"
|
||||||
define-stx)]
|
define-stx)]
|
||||||
[(_ name+arg-list contract #:freevars args . body)
|
[(_ name+arg-list contract #:freevars args . body)
|
||||||
(identifier? #'args)
|
(identifier? #'args)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user