@@ -572,6 +572,32 @@ fLargeTable(::Union, ::Union) = "b"
572
572
@test length (methods (fLargeTable)) == 205
573
573
@test fLargeTable (Union{Int, Missing}, Union{Int, Missing}) == " b"
574
574
575
+ # issue #58479
576
+ fLargeTable (:: Type ) = " Type"
577
+ fLargeTable (:: Type{<:DataType} ) = " DataType"
578
+ @test fLargeTable (Type) == " Type"
579
+ @test fLargeTable (DataType) == " DataType"
580
+ @test fLargeTable (Type{DataType}) == " DataType"
581
+ @test fLargeTable (Type{UnionAll}) == " DataType"
582
+ @test fLargeTable (Type{Int}) == " DataType"
583
+ @test fLargeTable (Type{Vector}) == " Type"
584
+ @test fLargeTable (Type{Type{Union{}}}) == " DataType"
585
+ @test fLargeTable (Type{Union{}}) == " Type"
586
+ @test fLargeTable (Union{}) == " DataType"
587
+ @test fLargeTable (Type{<: DataType }) == " Type"
588
+ fLargeTable (:: Type{<:UnionAll} ) = " UnionAll"
589
+ @test fLargeTable (UnionAll) == " UnionAll"
590
+ @test fLargeTable (Type{Vector}) == " UnionAll"
591
+ @test fLargeTable (Type{Int}) == " DataType"
592
+ @test fLargeTable (Type{Type{Union{}}}) == " DataType"
593
+ @test fLargeTable (Type{Union{}}) == " Type"
594
+ @test_throws MethodError fLargeTable (Union{})
595
+ @test fLargeTable (Type{<: DataType }) == " Type"
596
+ @test fLargeTable (Type{Vector{T}} where T) == " DataType"
597
+ @test fLargeTable (Union{DataType,Type{Vector{T}} where T}) == " DataType"
598
+ @test fLargeTable (Union{DataType,UnionAll,Type{Vector{T}} where T}) == " Type"
599
+ @test fLargeTable (Union{Type{Vector},Type{Vector{T}} where T}) == " Type"
600
+
575
601
# issue #15280
576
602
function f15280 (x) end
577
603
@test functionloc (f15280)[2 ] > 0
0 commit comments