@@ -516,7 +516,7 @@ Base.BroadcastStyle(::Type{T}) where {T<:AD2Dim} = AD2DimStyle()
516
516
@test a .+ 1 .* 2 == @inferred (fadd2 (aa))
517
517
@test a .* a' == @inferred (fprod (aa))
518
518
@test isequal (a .+ [missing ; 1 : 9 ], fadd3 (aa))
519
- @test_broken Core. Compiler. return_type (fadd3, (typeof (aa),)) <: Array19745{<:Union{Float64, Missing}}
519
+ @test Core. Compiler. return_type (fadd3, (typeof (aa),)) <: Array19745{<:Union{Float64, Missing}}
520
520
@test isa (aa .+ 1 , Array19745)
521
521
@test isa (aa .+ 1 .* 2 , Array19745)
522
522
@test isa (aa .* aa' , Array19745)
@@ -953,29 +953,20 @@ p0 = copy(p)
953
953
954
954
@testset " Issue #28382: inferrability of broadcast with Union eltype" begin
955
955
@test isequal ([1 , 2 ] .+ [3.0 , missing ], [4.0 , missing ])
956
- @test_broken Core. Compiler. return_type (broadcast, Tuple{typeof (+ ), Vector{Int},
957
- Vector{Union{Float64, Missing}}}) ==
958
- Vector{<: Union{Float64, Missing} }
959
956
@test Core. Compiler. return_type (broadcast, Tuple{typeof (+ ), Vector{Int},
960
957
Vector{Union{Float64, Missing}}}) ==
961
- AbstractVector {<: Union{Float64, Missing} }
958
+ Vector {<: Union{Float64, Missing} }
962
959
@test isequal ([1 , 2 ] + [3.0 , missing ], [4.0 , missing ])
963
- @test_broken Core. Compiler. return_type (+ , Tuple{Vector{Int},
964
- Vector{Union{Float64, Missing}}}) ==
960
+ @test Core. Compiler. return_type (+ , Tuple{Vector{Int},
961
+ Vector{Union{Float64, Missing}}}) ==
965
962
Vector{<: Union{Float64, Missing} }
966
963
@test Core. Compiler. return_type (+ , Tuple{Vector{Int},
967
964
Vector{Union{Float64, Missing}}}) ==
968
- AbstractVector{<: Union{Float64, Missing} }
969
- @test_broken Core. Compiler. return_type (+ , Tuple{Vector{Int},
970
- Vector{Union{Float64, Missing}}}) ==
971
965
Vector{<: Union{Float64, Missing} }
972
966
@test isequal (tuple .([1 , 2 ], [3.0 , missing ]), [(1 , 3.0 ), (2 , missing )])
973
- @test_broken Core. Compiler. return_type (broadcast, Tuple{typeof (tuple), Vector{Int},
974
- Vector{Union{Float64, Missing}}}) ==
975
- Vector{<: Tuple{Int, Any} }
976
967
@test Core. Compiler. return_type (broadcast, Tuple{typeof (tuple), Vector{Int},
977
968
Vector{Union{Float64, Missing}}}) ==
978
- AbstractVector {<: Tuple{Int, Any} }
969
+ Vector {<: Tuple{Int, Any} }
979
970
# Check that corner cases do not throw an error
980
971
@test isequal (broadcast (x -> x === 1 ? nothing : x, [1 , 2 , missing ]),
981
972
[nothing , 2 , missing ])
0 commit comments