File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1527,6 +1527,8 @@ function tuple_tfunc(argtypes::Vector{Any})
15271527 else
15281528 params[i] = Type
15291529 end
1530+ elseif iskindtype (x)
1531+ params[i] = x
15301532 elseif ! isvarargtype (x) && hasintersect (x, Type)
15311533 params[i] = Union{x, Type}
15321534 else
Original file line number Diff line number Diff line change @@ -1571,6 +1571,8 @@ let tuple_tfunc
15711571 @test Core. Compiler. widenconst (tuple_tfunc (Type{Int})) === Tuple{DataType}
15721572 # https://github.com/JuliaLang/julia/issues/44705
15731573 @test tuple_tfunc (Union{Type{Int32},Type{Int64}}) === Tuple{Type}
1574+ @test tuple_tfunc (DataType) === Tuple{DataType}
1575+ @test tuple_tfunc (UnionAll) === Tuple{UnionAll}
15741576end
15751577
15761578function f23024 (:: Type{T} , :: Int ) where T
You can’t perform that action at this time.
0 commit comments