We're updating the issue view to help you get more done. 

Macro auto-gensym in let not visible after a nested unquote/syntax-quote

Description

See the following simplified example:

1 2 3 4 5 6 7 8 9 10 11 user=> (defmacro foo [flag] `(let [a# 1] ~(if flag `(println a#)))) #'user/foo user=> (foo false) nil user=> (foo true) java.lang.Exception: Unable to resolve symbol: a__574__auto__ in this context (NO_SOURCE_FILE:6) user=> (macroexpand-1 '(foo true)) (clojure.core/let [a__575__auto__ 1] (clojure.core/println a__574__auto__))

Environment

None

Status

Assignee

Unassigned

Reporter

Alexander Taggart

Labels

None

Approval

None

Patch

None

Affects versions

Release 1.3

Priority

Minor