From ec0290e3b3306fa6690d126688a4a259499cbd4f Mon Sep 17 00:00:00 2001 From: tiemvanderdeure Date: Thu, 24 Jul 2025 16:03:31 +0200 Subject: [PATCH] do not overwite eltype and eachindex methods --- src/readonly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readonly.jl b/src/readonly.jl index 037e1f9d..27384817 100644 --- a/src/readonly.jl +++ b/src/readonly.jl @@ -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]