Skip to content
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

Problems expanding tricky $ macro #23

Closed
jw3126 opened this issue Sep 24, 2016 · 1 comment
Closed

Problems expanding tricky $ macro #23

jw3126 opened this issue Sep 24, 2016 · 1 comment

Comments

@jw3126
Copy link
Contributor

jw3126 commented Sep 24, 2016

julia> using MacroTools

julia> macro foo(ex)
          isa(ex,Expr) && ex.head == :$ ? 7 : ex
       end
@foo (macro with 1 method)

julia> @foo $bar
7

julia> @expand @foo $bar
:bar

See also here

@MikeInnes
Copy link
Member

Thanks for reporting, I pushed a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants