@@ -2630,8 +2630,20 @@ end
2630
2630
2631
2631
f () = _foldl_iter (step, (Missing[],), [0.0 ], 1 )
2632
2632
end
2633
- @test Core. Compiler. typesubtract (Tuple{Union{Int,Char}}, Tuple{Char}, 1 ) == Tuple{Union{Int,Char}}
2633
+ @test Core. Compiler. typesubtract (Tuple{Union{Int,Char}}, Tuple{Char}, 0 ) == Tuple{Int}
2634
+ @test Core. Compiler. typesubtract (Tuple{Union{Int,Char}}, Tuple{Char}, 1 ) == Tuple{Int}
2634
2635
@test Core. Compiler. typesubtract (Tuple{Union{Int,Char}}, Tuple{Char}, 2 ) == Tuple{Int}
2636
+ @test Core. Compiler. typesubtract (NTuple{3 , Union{Int, Char}}, Tuple{Char, Any, Any}, 0 ) ==
2637
+ Tuple{Int, Union{Char, Int}, Union{Char, Int}}
2638
+ @test Core. Compiler. typesubtract (NTuple{3 , Union{Int, Char}}, Tuple{Char, Any, Any}, 10 ) ==
2639
+ Union{Tuple{Int, Char, Char}, Tuple{Int, Char, Int}, Tuple{Int, Int, Char}, Tuple{Int, Int, Int}}
2640
+ @test Core. Compiler. typesubtract (NTuple{3 , Union{Int, Char}}, NTuple{3 , Char}, 0 ) ==
2641
+ NTuple{3 , Union{Int, Char}}
2642
+ @test Core. Compiler. typesubtract (NTuple{3 , Union{Int, Char}}, NTuple{3 , Char}, 10 ) ==
2643
+ Union{Tuple{Char, Char, Int}, Tuple{Char, Int, Char}, Tuple{Char, Int, Int}, Tuple{Int, Char, Char},
2644
+ Tuple{Int, Char, Int}, Tuple{Int, Int, Char}, Tuple{Int, Int, Int}}
2645
+
2646
+
2635
2647
@test Base. return_types (Issue35566. f) == [Val{:expected }]
2636
2648
2637
2649
# constant prop through keyword arguments
0 commit comments