diff --git a/stdlib/InteractiveUtils/src/editless.jl b/stdlib/InteractiveUtils/src/editless.jl index cc3de27e9a4d9..7a96323c9cdeb 100644 --- a/stdlib/InteractiveUtils/src/editless.jl +++ b/stdlib/InteractiveUtils/src/editless.jl @@ -229,6 +229,7 @@ function edit(@nospecialize f) length(ms) == 0 && functionloc(f) # throws nothing end +edit(m::Method) = edit(functionloc(m)...) edit(@nospecialize(f), idx::Integer) = edit(methods(f).ms[idx]) edit(f, t) = (@nospecialize; edit(functionloc(f, t)...)) edit(file::Nothing, line::Integer) = error("could not find source file for function")