Skip to content

Commit 47955e3

Browse files
authored
restrict getindex on MethodList to Integer (#41419)
1 parent 94b9d66 commit 47955e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/reflection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ mutable struct MethodList <: AbstractArray{Method,1}
925925
end
926926

927927
size(m::MethodList) = size(m.ms)
928-
getindex(m::MethodList, i) = m.ms[i]
928+
getindex(m::MethodList, i::Integer) = m.ms[i]
929929

930930
function MethodList(mt::Core.MethodTable)
931931
ms = Method[]

0 commit comments

Comments
 (0)