Skip to content

Commit

Permalink
Widen allowed type of a CodeInfo.linetable (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 8, 2020
1 parent cdf1450 commit f65e021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function linetable(arg)
if isa(arg, FrameCode)
arg = arg.src
end
return (arg::CodeInfo).linetable::Vector{Any}
return (arg::CodeInfo).linetable::Union{Vector{Core.LineInfoNode},Vector{Any}} # issue #264
end
linetable(arg, i::Integer) = linetable(arg)[i]::Union{Expr,LineTypes}

Expand Down

0 comments on commit f65e021

Please sign in to comment.