Skip to content

Commit

Permalink
testhelpers: make constructor override explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
topolarity committed Feb 10, 2025
1 parent 9b709a8 commit 3488f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testhelpers/OffsetDenseArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Base.setindex(x::OffsetDenseArray, v, i::Integer)
x.x[i - x.offset] = v
end

IndexStyle(::Type{<:OffsetDenseArray}) = Base.IndexLinear()
Base.IndexStyle(::Type{<:OffsetDenseArray}) = Base.IndexLinear()
Base.axes(x::OffsetDenseArray) = (x.offset + 1 : x.offset + length(x.x),)
Base.keys(x::OffsetDenseArray) = only(axes(x))

Expand Down

0 comments on commit 3488f4b

Please sign in to comment.