diff --git a/base/reflection.jl b/base/reflection.jl index db1e2bb1caafd..29a4b5f4a66ca 100644 --- a/base/reflection.jl +++ b/base/reflection.jl @@ -925,7 +925,7 @@ mutable struct MethodList <: AbstractArray{Method,1} end size(m::MethodList) = size(m.ms) -getindex(m::MethodList, i) = m.ms[i] +getindex(m::MethodList, i::Integer) = m.ms[i] function MethodList(mt::Core.MethodTable) ms = Method[]