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 Nov 1, 2019
1 parent 1dda3df commit a199931
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 @@ -1487,7 +1487,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 a199931

Please sign in to comment.