..
original commit: 08aa0bf1d8abb66a43585e55e85bccbad19391bc
This commit is contained in:
parent
698bb4878f
commit
a52d7de5ca
|
@ -2142,7 +2142,8 @@ add structu contracts for immutable structs?
|
|||
(for-each (lambda (name)
|
||||
(unless (identifier? name)
|
||||
(raise-syntax-error 'flat-rec-contract
|
||||
"expected an identifier" stx name))))]
|
||||
"expected an identifier" stx name)))
|
||||
(syntax->list (syntax (name ...))))]
|
||||
[(_ ([name ctc ...] ...))
|
||||
(raise-syntax-error 'flat-rec-contract "expected at least one body expression" stx)]))
|
||||
|
||||
|
|
|
@ -1943,6 +1943,9 @@
|
|||
even1)
|
||||
'(1 2 3 4)
|
||||
'(1 2 3))
|
||||
(syntax-test #'(flat-murec-contract ([(x) y]) x)) ;; malformed binder
|
||||
(syntax-test #'(flat-murec-contract ([x y]))) ;; missing body
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; ;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user