Skip to content

Commit

Permalink
Merge pull request #1121 from nsajko/p
Browse files Browse the repository at this point in the history
complex: typo: `promote_type` -> `promote_symtype`
  • Loading branch information
ChrisRackauckas authored Apr 19, 2024
2 parents 2c178fa + 811e1cb commit 45de9b8
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 45de9b8

Please sign in to comment.