Skip to content

Commit

Permalink
Merge pull request #80 from pfitzseb/sp/unionallkw
Browse files Browse the repository at this point in the history
more `unwrap_unionall`s for kw func handling
  • Loading branch information
timholy authored Feb 27, 2019
2 parents 6eaf051 + 1533989 commit 2eac908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JuliaInterpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2eac908

Please sign in to comment.