Skip to content

Commit

Permalink
complex: typo: promote_type -> promote_symtype
Browse files Browse the repository at this point in the history
NB: we actually have `SymbolicUtils.promote_type === Base.promote_type`
  • Loading branch information
nsajko committed Apr 19, 2024
1 parent 2c178fa commit 811e1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct ComplexTerm{T} <: AbstractComplexTerm{T}
end

Base.imag(c::Symbolic{Complex{T}}) where {T} = term(imag, c)
SymbolicUtils.promote_type(::typeof(imag), ::Type{Complex{T}}) where {T} = T
SymbolicUtils.promote_symtype(::typeof(imag), ::Type{Complex{T}}) where {T} = T
Base.promote_rule(::Type{Complex{T}}, ::Type{S}) where {T<:Real, S<:Num} = Complex{S} # 283

has_symwrapper(::Type{<:Complex{T}}) where {T<:Real} = true
Expand Down

0 comments on commit 811e1cb

Please sign in to comment.