Skip to content

Commit 7fd9dd1

Browse files
fix: implement promote_operation_fallback for real and imag
1 parent 109d156 commit 7fd9dd1

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
@@ -103,6 +103,13 @@ function promote_operation_fallback(
103103
)
104104
end
105105

106+
function promote_operation_fallback(
107+
::Union{typeof(real),typeof(imag)},
108+
::Type{Complex{T}},
109+
) where {T}
110+
return T
111+
end
112+
106113
"""
107114
promote_operation(op::Function, ArgsTypes::Type...)
108115

0 commit comments

Comments
 (0)