Fix error message in define/contract.

svn: r14522
This commit is contained in:
Stevie Strickland 2009-04-15 15:43:04 +00:00
parent beeb832223
commit b7063fc563

View File

@ -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)