Skip to content

Commit a982621

Browse files
authored
Fix call to macroexpand in @Bounce
There are two calls to macroexpand in this file, and one of them had not been updated to use @__MODULE__ as the first argument.
1 parent c1dbf2a commit a982621

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)