Skip to content

Boundserror in definition(String, method) when the method has inline macros without arguments #41

@KristofferC

Description

@KristofferC
julia> function g()
           Base.@_inline_meta
           print("hello")
       end
g (generic function with 2 methods)

julia> CodeTracking.definition(String, @which g())
ERROR: BoundsError: attempt to access 2-element Array{Any,1} at index [3]
Stacktrace:
 [1] getindex(::Array{Any,1}, ::Int64) at .\array.jl:729
 [2] isfuncexpr(::Expr) at C:\Users\Kristoffer\.julia\environments\v1.1\dev\CodeTracking\src\utils.jl:5
 [3] definition(::Type{String}, ::Method) at C:\Users\Kristoffer\.julia\environments\v1.1\dev\CodeTracking\src\CodeTracking.jl:204
 [4] top-level scope at none:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions