Skip to content

Commit 2ddd78c

Browse files
author
Pietro Vertechi
authored
removed inconsistent fields method (JuliaArrays#18)
1 parent 5a269ff commit 2ddd78c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/structarray.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ end
7070
Base.@propagate_inbounds Base.setindex!(s::StructArray, val, I::Int...) = set_ith!(s, val, I...)
7171

7272
fields(::Type{<:NamedTuple{K}}) where {K} = K
73-
fields(::Type{<:StructArray{T}}) where {T} = fields(T)
7473
@generated function fields(t::Type{T}) where {T}
7574
return :($(Expr(:tuple, [QuoteNode(f) for f in fieldnames(T)]...)))
7675
end

0 commit comments

Comments
 (0)