Skip to content

Commit 1533989

Browse files
committed
more unwrap_unionalls for kw func handling
1 parent 2c8ca6e commit 1533989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JuliaInterpreter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ function maybe_step_through_wrapper!(stack)
937937
last = stack[1].code.code.code[end-1]
938938
isexpr(last, :(=)) && (last = last.args[2])
939939
stack1 = stack[1]
940-
is_kw = stack1.code.scope isa Method && startswith(String(Base.unwrap_unionall(stack1.code.scope.sig).parameters[1].name.name), "#kw")
940+
is_kw = stack1.code.scope isa Method && startswith(String(Base.unwrap_unionall(Base.unwrap_unionall(stack1.code.scope.sig).parameters[1]).name.name), "#kw")
941941
if is_kw || isexpr(last, :call) && any(x->x==SlotNumber(1), last.args)
942942
# If the last expr calls #self# or passes it to an implementation method,
943943
# this is a wrapper function that we might want to step through

0 commit comments

Comments
 (0)