From 9e4faab9db818ad369ba62f38a53dba134c4ad54 Mon Sep 17 00:00:00 2001 From: uribalb Date: Tue, 22 Sep 2020 05:58:11 +0100 Subject: [PATCH] prettify function definition in bounce macro Adresses https://github.com/MikeInnes/Lazy.jl/issues/123 --- src/tail.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tail.jl b/src/tail.jl index 7042ac7..b84bad8 100644 --- a/src/tail.jl +++ b/src/tail.jl @@ -116,7 +116,7 @@ Tail recursion that doesn't blow the stack. For simple cases you probably want the much faster [`@rec`](@ref). """ macro bounce(def) - def = macroexpand(@__MODULE__, def) + def = macroexpand(@__MODULE__, prettify(def)) @assert isdef(def) @assert isexpr(def.args[1].args[1], Symbol) # TODO: handle f{T}() = ... f = namify(def)