Skip to content

Commit 2e089c2

Browse files
fix: implement promote_operation_fallback for real and imag
1 parent ede6650 commit 2e089c2

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
@@ -94,6 +94,13 @@ function promote_operation_fallback(
9494
)
9595
end
9696

97+
function promote_operation_fallback(
98+
::Union{typeof(real),typeof(imag)},
99+
::Type{Complex{T}},
100+
) where {T}
101+
return T
102+
end
103+
97104
"""
98105
promote_operation(op::Function, ArgsTypes::Type...)
99106

0 commit comments

Comments
 (0)