Skip to content

Commit

Permalink
don't use fieldtypes for julia 1.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinhenz committed Feb 29, 2020
1 parent dfe1667 commit d52ea72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HDF5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,8 @@ end
# get a vector of all the leaf types in a (possibly nested) named tuple
function get_all_types(::Type{NamedTuple{T, U}}) where T where U
types = []
for Ui in fieldtypes(U)
for i in 1:fieldcount(U)
Ui = fieldtype(U, i)
if Ui <: NamedTuple
append!(types, get_all_types(Ui))
else
Expand Down

0 comments on commit d52ea72

Please sign in to comment.