Skip to content

Commit

Permalink
Fix error with parametric types
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jan 18, 2019
1 parent b6d3bfd commit b6e849b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ASTInterpreter2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ end
function maybe_step_through_wrapper!(stack)
last = stack[1].code.code[end-1]
isexpr(last, :(=)) && (last = last.args[2])
is_kw = startswith(String(Base.unwrap_unionall(stack[1].meth.sig).parameters[1].name.name), "#kw")
parameter = Base.unwrap_unionall(stack[1].meth.sig).parameters[1]
is_kw = (:name in fieldnames(parameter)) && startswith(String(parameter.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 implemetnation method,
# this is a wrapper function that we might want to step though
Expand Down

0 comments on commit b6e849b

Please sign in to comment.