Skip to content

Commit 113961a

Browse files
committed
Check hasmethod instead of a variable
1 parent a81d9ad commit 113961a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infarrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ Base._unsafe_getindex(::IndexStyle, A::AbstractFill{<:Any,2}, kr::InfAxes, jr::U
428428

429429
@inline getindex(A::ApplyMatrix{<:Any,typeof(hcat)}, kr::InfAxes, j::Integer) = layout_getindex(A, kr, j)
430430

431-
if !isdefined(FillArrays, :_checkindex_AbstractUnitRange_AbstractFill)
431+
if !hasmethod(Base.checkindex, Tuple{Type{Bool}, AbstractUnitRange, FillArrays.AbstractFill})
432432
Base.checkindex(::Type{Bool}, inds::AbstractUnitRange, I::AbstractFill) = Base.checkindex(Bool, inds, getindex_value(I))
433433
end
434434
LazyArrays.cache_getindex(::InfiniteCardinal{0}, A::AbstractVector, I, J...) = layout_getindex(A, I, J...)

0 commit comments

Comments
 (0)