Skip to content

Commit 2f6a6d9

Browse files
authored
prevent docs warning (#199)
1 parent c973bab commit 2f6a6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mlir/IR/Type.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Type(T::Core.Type{<:Integer}; context::Context=context()) =
9090
9191
Creates a complex type with the given element type.
9292
"""
93-
Type(::Core.Type{Complex{T}}; context=context()) where {T} = Type(API.mlirComplexTypeGet(Type(T)))
93+
Type(T::Core.Type{<:Complex}; context=context()) = Type(API.mlirComplexTypeGet(Type(T(im) |> real |> typeof)))
9494

9595
"""
9696
Type(T::Core.Type{<:Signed}; context=context()

0 commit comments

Comments
 (0)