From 15339893a5fe0656d4e1905afe38997a4e74c86e Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Wed, 27 Feb 2019 09:30:39 +0100 Subject: [PATCH] more `unwrap_unionall`s for kw func handling --- src/JuliaInterpreter.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JuliaInterpreter.jl b/src/JuliaInterpreter.jl index bf311c6e90ce29..7da1b50648c1de 100644 --- a/src/JuliaInterpreter.jl +++ b/src/JuliaInterpreter.jl @@ -937,7 +937,7 @@ function maybe_step_through_wrapper!(stack) last = stack[1].code.code.code[end-1] isexpr(last, :(=)) && (last = last.args[2]) stack1 = stack[1] - is_kw = stack1.code.scope isa Method && startswith(String(Base.unwrap_unionall(stack1.code.scope.sig).parameters[1].name.name), "#kw") + is_kw = stack1.code.scope isa Method && startswith(String(Base.unwrap_unionall(Base.unwrap_unionall(stack1.code.scope.sig).parameters[1]).name.name), "#kw") if is_kw || isexpr(last, :call) && any(x->x==SlotNumber(1), last.args) # If the last expr calls #self# or passes it to an implementation method, # this is a wrapper function that we might want to step through