-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong expansion of inlined forms inside other inlined forms #33
Comments
I think this has something to do with Riddley marking the second call to (binding [*print-meta* true]
(pr (riddley.walk/macroexpand-all '(= (count [1 2]) (count [3 4])))))
->
;; (line/col metadata removed for clarity)
(.
clojure.lang.Util
clojure.core/equiv
(. clojure.lang.RT (clojure.core/count [1 2]))
^{:riddley.walk/transformed true} (count [3 4])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into this issue:
Note the the
=
form and the firstcount
form are expanded correctly, but the secondcount
form is not expanded.Macroexpanding the form generated by the inlined call to
=
seems to work:It also seems to work correctly if I replace the calls to
count
with calls to macros that simply expand to calls to count:This doesn't seem to affect every inlined function:
The text was updated successfully, but these errors were encountered: