fix with-shared-id

This commit is contained in:
Matthew Butterick 2016-08-31 11:49:47 -07:00
parent e2df4fee70
commit 42d0dacb5b

View File

@ -119,9 +119,7 @@
(begin-for-syntax (begin-for-syntax
(define-syntax-rule (with-shared-id (id ...) . body) (define-syntax-rule (with-shared-id (id ...) . body)
(with-syntax ([id (datum->syntax caller-stx (if (syntax? id) (with-syntax ([id (datum->syntax caller-stx 'id)] ...)
(syntax-e id)
id))] ...)
. body))) . body)))