clojerl / clojerl

Clojure for the Erlang VM (unofficial)

Home Page:http://try.clojerl.online/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tuples are not processed corrected in a syntax quote

jfacorro opened this issue · comments

Describe the bug
Unquoting a symbol inside a tuple when inside a syntax-quote results in a compilation error.

To Reproduce

clje.user=> (defmacro ok [x] `#erl[:ok ~x])
#'clje.user/ok
clje.user=> (ok 1)
#error {
 :type clojerl.Error
 :message NO_SOURCE_FILE:?:?: Unable to resolve symbol: x in this context}

Expected behavior

clje.user=> (defmacro ok [x] `#erl[:ok ~x])
#'clje.user/ok
clje.user=> (ok 1)
#erl[:ok 1]

Actual behavior
A compilation error is triggered instead.

Context

  • clojerl version (tag/sha): 0.7.0-58-g2bc69c8