Add in nicer version for function definitions.
svn: r11648
This commit is contained in:
parent
c1fa0fe0ed
commit
16399b7827
|
@ -60,6 +60,10 @@ improve method arity mismatch contract violation error messages?
|
|||
#'(with-contract name
|
||||
([name contract-expr])
|
||||
(define name expr))]
|
||||
[(_ (name arg ...) contract body)
|
||||
(identifier? (syntax name))
|
||||
#'(define/contract name contract
|
||||
(lambda (arg ...) body))]
|
||||
[(_ name contract-expr expr)
|
||||
(raise-syntax-error 'define/contract "expected identifier in first position"
|
||||
define-stx
|
||||
|
|
Loading…
Reference in New Issue
Block a user