We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c973bab commit 2f6a6d9Copy full SHA for 2f6a6d9
src/mlir/IR/Type.jl
@@ -90,7 +90,7 @@ Type(T::Core.Type{<:Integer}; context::Context=context()) =
90
91
Creates a complex type with the given element type.
92
"""
93
-Type(::Core.Type{Complex{T}}; context=context()) where {T} = Type(API.mlirComplexTypeGet(Type(T)))
+Type(T::Core.Type{<:Complex}; context=context()) = Type(API.mlirComplexTypeGet(Type(T(im) |> real |> typeof)))
94
95
96
Type(T::Core.Type{<:Signed}; context=context()
0 commit comments