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