Skip to content

Commit a181e5b

Browse files
fix: fix conversion to identically typed Term
1 parent d61356e commit a181e5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/default_term.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ end
3434
function Base.convert(::Type{Term{T, M}}, t::AbstractTerm) where {T, M}
3535
return Term{T, M}(convert(T, coefficient(t)), convert(M, monomial(t)))
3636
end
37+
function Base.convert(::Type{Term{T, M}}, t::Term{T, M}) where {T, M}
38+
return t
39+
end
3740

3841
function convert_constant(::Type{Term{C,M} where C}, α) where {M}
3942
return convert(Term{typeof(α),M}, α)

0 commit comments

Comments
 (0)