fix shared on top-level 'list' binding

svn: r12387
This commit is contained in:
Matthew Flatt 2008-11-11 17:53:12 +00:00
parent ab1da92ee9
commit 209b252f2c

View File

@ -97,14 +97,14 @@
[(mcons . _)
(bad "mcons")]
[(lst e ...)
(ormap (lambda (x) (free-identifier=? x #'lst))
(ormap (lambda (x) (same-special-id? #'lst x))
(syntax->list #'(list list*)))
(with-syntax ([(e ...)
(map (lambda (x) (cons-elem x))
(syntax->list (syntax (e ...))))])
(syntax/loc expr (lst e ...)))]
[(lst . _)
(ormap (lambda (x) (free-identifier=? x #'lst))
(ormap (lambda (x) (same-special-id? #'lst x))
(syntax->list #'(list list*)))
(bad (syntax-e #'lst))]
[(append e0 ... e)