From a98262142ba5b7e9ac69390be40b4d832ca8d06c Mon Sep 17 00:00:00 2001 From: "Samuel S. Watson" Date: Sun, 24 Mar 2019 17:35:12 -0400 Subject: [PATCH] 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. --- src/tail.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tail.jl b/src/tail.jl index fa81c2a..eedc0cc 100644 --- a/src/tail.jl +++ b/src/tail.jl @@ -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)