diff --git a/src/namedtuple/productnamedtuple.jl b/src/namedtuple/productnamedtuple.jl index 4d6b4f03e..df01162e1 100644 --- a/src/namedtuple/productnamedtuple.jl +++ b/src/namedtuple/productnamedtuple.jl @@ -43,7 +43,7 @@ function ProductNamedTupleDistribution( dists::NamedTuple{K,V} ) where {K,V<:Tuple{Distribution,Vararg{Distribution}}} vs = _product_valuesupport(values(dists)) - eltypes = _product_namedtuple_eltype(values(dists)) + eltypes = _product_namedtuple_eltype(dists) return ProductNamedTupleDistribution{K,V,vs,eltypes}(dists) end