Skip to content

Commit

Permalink
fix: fix eltype method
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 17, 2023
1 parent 76a5b2e commit c647499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector_of_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ function Base.CartesianIndices(VA::AbstractVectorOfArray)
end

# Tools for creating similar objects
Base.eltype(::VectorOfArray{T}) where {T} = T
Base.eltype(::Type{<:AbstractVectorOfArray{T}}) where {T} = T

Check warning on line 513 in src/vector_of_array.jl

View check run for this annotation

Codecov / codecov/patch

src/vector_of_array.jl#L513

Added line #L513 was not covered by tests
# TODO: Is there a better way to do this?
@inline function Base.similar(VA::AbstractVectorOfArray, args...)
if args[end] isa Type
Expand Down

0 comments on commit c647499

Please sign in to comment.