Skip to content

Commit a199931

Browse files
committed
don't use fieldtypes for julia 1.0 compatibility
1 parent 1dda3df commit a199931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HDF5.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,8 @@ end
14871487
# get a vector of all the leaf types in a (possibly nested) named tuple
14881488
function get_all_types(::Type{NamedTuple{T, U}}) where T where U
14891489
types = []
1490-
for Ui in fieldtypes(U)
1490+
for i in 1:fieldcount(U)
1491+
Ui = fieldtype(U, i)
14911492
if Ui <: NamedTuple
14921493
append!(types, get_all_types(Ui))
14931494
else

0 commit comments

Comments
 (0)