Skip to content

Commit a1b5f06

Browse files
authored
Merge pull request #105 from sswatson/patch-2
Fix call to macroexpand in @Bounce
2 parents c1dbf2a + a982621 commit a1b5f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tail.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Tail recursion that doesn't blow the stack.
117117
For simple cases you probably want the much faster `@rec`.
118118
"""
119119
macro bounce(def)
120-
def = macroexpand(def)
120+
def = macroexpand(@__MODULE__, def)
121121
@assert isdef(def)
122122
@assert isexpr(def.args[1].args[1], Symbol) # TODO: handle f{T}() = ...
123123
f = namify(def)

0 commit comments

Comments
 (0)