Skip to content

Commit

Permalink
Update src/PooledArrays.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
  • Loading branch information
bkamins and nalimilan authored Feb 28, 2021
1 parent 49afb14 commit 3eb65e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PooledArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ if VERSION < v"1.1"
end
end

# Defined to avoid ambiguities with Base
Base.@propagate_inbounds function Base.getindex(A::SubArray{<:Any, N, <:PooledArray}, I::Vararg{Int,N}) where {T,N}
idx = DataAPI.refarray(A)[I...]
iszero(idx) && throw(UndefRefError())
Expand Down

0 comments on commit 3eb65e7

Please sign in to comment.