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 @@ -1558,6 +1558,8 @@ function tuple_tfunc(argtypes::Vector{Any})
1558
1558
else
1559
1559
params[i] = Type
1560
1560
end
1561
+ elseif x === DataType || x === UnionAll
1562
+ params[i] = x
1561
1563
elseif ! isvarargtype (x) && hasintersect (x, Type)
1562
1564
params[i] = Union{x, Type}
1563
1565
else
Original file line number Diff line number Diff line change @@ -1569,6 +1569,8 @@ let tuple_tfunc
1569
1569
@test Core. Compiler. widenconst (tuple_tfunc (Type{Int})) === Tuple{DataType}
1570
1570
# https://github.com/JuliaLang/julia/issues/44705
1571
1571
@test tuple_tfunc (Union{Type{Int32},Type{Int64}}) === Tuple{Type}
1572
+ @test tuple_tfunc (DataType) === Tuple{DataType}
1573
+ @test tuple_tfunc (UnionAll) === Tuple{UnionAll}
1572
1574
end
1573
1575
1574
1576
function f23024 (:: Type{T} , :: Int ) where T
You can’t perform that action at this time.
0 commit comments