Skip to content

Commit

Permalink
Merge pull request #105 from sswatson/patch-2
Browse files Browse the repository at this point in the history
Fix call to macroexpand in @Bounce
  • Loading branch information
pfitzseb authored Mar 25, 2019
2 parents c1dbf2a + a982621 commit a1b5f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tail.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Tail recursion that doesn't blow the stack.
For simple cases you probably want the much faster `@rec`.
"""
macro bounce(def)
def = macroexpand(def)
def = macroexpand(@__MODULE__, def)
@assert isdef(def)
@assert isexpr(def.args[1].args[1], Symbol) # TODO: handle f{T}() = ...
f = namify(def)
Expand Down

0 comments on commit a1b5f06

Please sign in to comment.