Skip to content

Commit ec0290e

Browse files
do not overwite eltype and eachindex methods
1 parent 30201ab commit ec0290e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/readonly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ReadOnly(x::ReadOnly) = x
1313
Base.getproperty(x::ReadOnly, s::Symbol) = Base.getproperty(parent(x), s)
1414
@inline Base.parent(x::ReadOnly) = getfield(x, :parent)
1515

16-
for i in [:length, :first, :last, :eachindex, :firstindex, :lastindex, :eltype]
16+
for i in [:length, :first, :last, :firstindex, :lastindex]
1717
@eval Base.@propagate_inbounds @inline Base.$i(x::ReadOnly) = Base.$i(parent(x))
1818
end
1919
for i in [:iterate, :axes, :getindex, :size, :strides]

0 commit comments

Comments
 (0)