diff --git a/src/indexing.jl b/src/indexing.jl index 0d80c9f5..818ba3d7 100644 --- a/src/indexing.jl +++ b/src/indexing.jl @@ -398,6 +398,8 @@ Base.checkindex(B::Type{Bool}, inds::AbstractUnitRange, i::StaticIndexing{T}) wh # unsafe_view need only deal with vargs of `StaticIndexing`, as wrapped by to_indices. # i1 is explicitly specified to avoid ambiguities with Base Base.unsafe_view(A::AbstractArray, i1::StaticIndexing, indices::StaticIndexing...) = Base.unsafe_view(A, unwrap(i1), map(unwrap, indices)...) +# disambiguation +Base.unsafe_view(A::SubArray, i1::StaticIndexing, indices::StaticIndexing...) = Base.unsafe_view(A, unwrap(i1), map(unwrap, indices)...) # Views of views need a new method for Base.SubArray because storing indices # wrapped in StaticIndexing in field indices of SubArray causes all sorts of problems.