improved source locations for previous fix
svn: r5765
This commit is contained in:
parent
e61faf231e
commit
69ed5483cf
|
@ -1879,7 +1879,9 @@ add struct contracts for immutable structs?
|
||||||
|#
|
|#
|
||||||
(define-syntax (struct/c stx)
|
(define-syntax (struct/c stx)
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
[(_ . args) (syntax (begin0 (do-struct/c . args)))]))
|
[(_ . args)
|
||||||
|
(with-syntax ([x (syntax/loc stx (do-struct/c . args))])
|
||||||
|
(syntax/loc stx (begin0 x)))]))
|
||||||
|
|
||||||
(define-syntax (do-struct/c stx)
|
(define-syntax (do-struct/c stx)
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user