Skip to content
Open
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
do not overwite eltype and eachindex methods
  • Loading branch information
tiemvanderdeure committed Jul 24, 2025
commit ec0290e3b3306fa6690d126688a4a259499cbd4f
2 changes: 1 addition & 1 deletion src/readonly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ReadOnly(x::ReadOnly) = x
Base.getproperty(x::ReadOnly, s::Symbol) = Base.getproperty(parent(x), s)
@inline Base.parent(x::ReadOnly) = getfield(x, :parent)

for i in [:length, :first, :last, :eachindex, :firstindex, :lastindex, :eltype]
for i in [:length, :first, :last, :firstindex, :lastindex]
@eval Base.@propagate_inbounds @inline Base.$i(x::ReadOnly) = Base.$i(parent(x))
end
for i in [:iterate, :axes, :getindex, :size, :strides]
Expand Down
Loading