Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/vector_of_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,16 @@ end
) where {T}
return similar(Array{T}, dims)
end
# On Julia versions where Base.similar(::AbstractArray, ::Type, ::Tuple{Integer,
# Vararg{Integer}}) still exists (removed upstream in 1.12), that method and the
# one above are each more specific than the other in one argument position,
# which Aqua reports as an ambiguity. Pin down the Integer-only intersection
# explicitly, mirroring the equivalent pair of methods Base itself defines.
@inline function Base.similar(
VA::AbstractVectorOfArray, ::Type{T}, dims::Tuple{Integer, Vararg{Integer}}
) where {T}
return similar(Array{T}, dims)
end


# fill!
Expand Down
Loading