@@ -516,7 +516,7 @@ Base.BroadcastStyle(::Type{T}) where {T<:AD2Dim} = AD2DimStyle()
516516 @test a .+ 1 .* 2 == @inferred (fadd2 (aa))
517517 @test a .* a' == @inferred (fprod (aa))
518518 @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}}
520520 @test isa (aa .+ 1 , Array19745)
521521 @test isa (aa .+ 1 .* 2 , Array19745)
522522 @test isa (aa .* aa' , Array19745)
@@ -953,29 +953,20 @@ p0 = copy(p)
953953
954954@testset " Issue #28382: inferrability of broadcast with Union eltype" begin
955955 @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} }
959956 @test Core. Compiler. return_type (broadcast, Tuple{typeof (+ ), Vector{Int},
960957 Vector{Union{Float64, Missing}}}) ==
961- AbstractVector {<: Union{Float64, Missing} }
958+ Vector {<: Union{Float64, Missing} }
962959 @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}}}) ==
965962 Vector{<: Union{Float64, Missing} }
966963 @test Core. Compiler. return_type (+ , Tuple{Vector{Int},
967964 Vector{Union{Float64, Missing}}}) ==
968- AbstractVector{<: Union{Float64, Missing} }
969- @test_broken Core. Compiler. return_type (+ , Tuple{Vector{Int},
970- Vector{Union{Float64, Missing}}}) ==
971965 Vector{<: Union{Float64, Missing} }
972966 @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} }
976967 @test Core. Compiler. return_type (broadcast, Tuple{typeof (tuple), Vector{Int},
977968 Vector{Union{Float64, Missing}}}) ==
978- AbstractVector {<: Tuple{Int, Any} }
969+ Vector {<: Tuple{Int, Any} }
979970 # Check that corner cases do not throw an error
980971 @test isequal (broadcast (x -> x === 1 ? nothing : x, [1 , 2 , missing ]),
981972 [nothing , 2 , missing ])
0 commit comments