Skip to content

Commit cdac60b

Browse files
committed
Fix ambiguitiy
1 parent efb4ce3 commit cdac60b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tensors/braidingtensor.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ promote_storagetype(::Type{B}, ::Type{T}) where {B <: BraidingTensor, T <: Abstr
8585
promote_storagetype(storagetype(B), storagetype(T))
8686
promote_storagetype(::Type{T}, ::Type{B}) where {B <: BraidingTensor, T <: AbstractTensorMap} =
8787
promote_storagetype(storagetype(B), storagetype(T))
88+
promote_storagetype(::Type{BA}, ::Type{BB}) where {BA <: BraidingTensor, BB <: BraidingTensor} =
89+
promote_storagetype(storagetype(BA), storagetype(BB))
8890

8991
function Base.getindex(b::BraidingTensor)
9092
sectortype(b) === Trivial || throw(SectorMismatch())

0 commit comments

Comments
 (0)