diff --git a/src/treetensornetworks/projttns/projttnsum.jl b/src/treetensornetworks/projttns/projttnsum.jl index 59c1a5ca..cd1cdf72 100644 --- a/src/treetensornetworks/projttns/projttnsum.jl +++ b/src/treetensornetworks/projttns/projttnsum.jl @@ -3,8 +3,8 @@ ProjTTNSum """ struct ProjTTNSum{V} <: AbstractProjTTN{V} terms::Vector{AbstractProjTTN{V}} - function ProjTTNSum(terms::Vector{<:AbstractProjTTN{V}}) where {V} - return new{V}(terms) + function ProjTTNSum(terms::Vector{<:AbstractProjTTN}) + return new{eltype(terms)}(terms) end end