.
original commit: 01bf1a42af2e50662c1a792959dfc063df876cc9
This commit is contained in:
parent
dc69f0b229
commit
6d0d143b23
|
@ -462,21 +462,23 @@ add struct contracts for immutable structs?
|
|||
(syntax _))]
|
||||
[(_ arg (... ...))
|
||||
(syntax
|
||||
((-contract contract-id
|
||||
((begin-lifted
|
||||
(-contract contract-id
|
||||
id
|
||||
pos-module-source
|
||||
(module-source-as-symbol #'neg-stx)
|
||||
(quote-syntax _))
|
||||
(quote-syntax _)))
|
||||
arg
|
||||
(... ...)))]
|
||||
[_
|
||||
(identifier? (syntax _))
|
||||
(syntax
|
||||
(begin-lifted
|
||||
(-contract contract-id
|
||||
id
|
||||
pos-module-source
|
||||
(module-source-as-symbol #'neg-stx)
|
||||
(quote-syntax _)))]))))))))))
|
||||
(quote-syntax _))))]))))))))))
|
||||
|
||||
(with-syntax ([(bodies ...) (code-for-each-clause (syntax->list (syntax (p/c-ele ...))))])
|
||||
(syntax
|
||||
|
|
|
@ -560,4 +560,5 @@
|
|||
(define-syntax (begin-lifted stx)
|
||||
(syntax-case stx ()
|
||||
[(_ expr0 expr ...)
|
||||
(syntax-local-lift-expression #'(begin expr0 expr ...))])))
|
||||
(syntax-local-lift-expression
|
||||
#'(begin expr0 expr ...))])))
|
||||
|
|
Loading…
Reference in New Issue
Block a user