From 811e1cb616af13f56b41f8fbccf2506e405e468a Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Fri, 19 Apr 2024 08:36:46 +0200 Subject: [PATCH] complex: typo: `promote_type` -> `promote_symtype` NB: we actually have `SymbolicUtils.promote_type === Base.promote_type` --- src/complex.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/complex.jl b/src/complex.jl index 832d2816a..d1e7b4769 100644 --- a/src/complex.jl +++ b/src/complex.jl @@ -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