Skip to content

Commit abd3cec

Browse files
committed
fix julia 1.0 problem
1 parent e879925 commit abd3cec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/StatisticalTraits.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ struct RootMeanSquare <: AggregationMode end
5858
# Some helper functions are needed to construct sensible fallbacks for
5959
# some traits.
6060

61+
if VERSION < v"1.1"
62+
fieldtypes(t) = Tuple(fieldtype(t, i) for i = 1:fieldcount(t))
63+
end
64+
6165
"""
6266
6367
typename(T::Type)

0 commit comments

Comments
 (0)