Skip to content

Commit e15db31

Browse files
fix: implement promote_operation_fallback for real and imag
1 parent b340171 commit e15db31

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/interface.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ function promote_operation_fallback(
120120
)
121121
end
122122

123+
function promote_operation_fallback(
124+
::Union{typeof(real),typeof(imag)},
125+
::Type{Complex{T}},
126+
) where {T}
127+
return T
128+
end
129+
123130
"""
124131
promote_operation(op::Function, ArgsTypes::Type...)
125132

0 commit comments

Comments
 (0)