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]