@@ -1570,7 +1570,7 @@ end
15701570
15711571let x = TypeVar (:_ ), y = TypeVar (:_ )
15721572 @test repr (UnionAll (x, UnionAll (y, Pair{x,y}))) == " Pair"
1573- @test repr (UnionAll (y, UnionAll (x, Pair{x,y}))) == " Pair{<:Any , _1} where _1 "
1573+ @test repr (UnionAll (y, UnionAll (x, Pair{x,y}))) == " Pair{_2 , _1} where {_1, _2} "
15741574 @test repr (UnionAll (x, UnionAll (y, Pair{UnionAll (x,Ref{x}),y}))) == " Pair{Ref}"
15751575 @test repr (UnionAll (y, UnionAll (x, Pair{UnionAll (y,Ref{x}),y}))) == " Pair{Ref{_2}, _1} where {_1, _2}"
15761576end
@@ -1584,9 +1584,9 @@ let x, y, x
15841584end
15851585
15861586let x = TypeVar (:_ , Number), y = TypeVar (:_ , Number)
1587- @test repr (UnionAll (x, UnionAll (y, Pair{x,y}))) == " Pair{<:Number, <:Number}"
1588- @test repr (UnionAll (y, UnionAll (x, Pair{x,y}))) == " Pair{<:Number , _1} where _1<:Number"
1589- @test repr (UnionAll (x, UnionAll (y, Pair{UnionAll (x,Ref{x}),y}))) == " Pair{Ref{<:Number}, <:Number} "
1587+ @test repr (UnionAll (x, UnionAll (y, Pair{x,y}))) == " Pair{_1, _2} where {_1 <:Number, _2 <:Number}"
1588+ @test repr (UnionAll (y, UnionAll (x, Pair{x,y}))) == " Pair{_2 , _1} where { _1<:Number, _2<:Number} "
1589+ @test repr (UnionAll (x, UnionAll (y, Pair{UnionAll (x,Ref{x}),y}))) == " Pair{Ref{_1} where _1 <:Number, _1} where _1 <:Number"
15901590 @test repr (UnionAll (y, UnionAll (x, Pair{UnionAll (y,Ref{x}),y}))) == " Pair{Ref{_2}, _1} where {_1<:Number, _2<:Number}"
15911591end
15921592
@@ -1771,7 +1771,7 @@ end
17711771 @test replstr ([[1.0 ]=> 1.0 ]) == " 1-element Vector{Pair{Vector{Float64}, Float64}}:\n [1.0] => 1.0"
17721772
17731773 # issue #28159
1774- @test replstr ([(a= 1 , b= 2 ), (a= 3 ,c= 4 )]) == " 2-element Vector{NamedTuple{<:Any , Tuple{$Int , $Int }}}:\n (a = 1, b = 2)\n (a = 3, c = 4)"
1774+ @test replstr ([(a= 1 , b= 2 ), (a= 3 ,c= 4 )]) == " 2-element Vector{NamedTuple{names , Tuple{$Int , $Int }} where names }:\n (a = 1, b = 2)\n (a = 3, c = 4)"
17751775
17761776 @test replstr (Vector[Any[1 ]]) == " 1-element Vector{Vector}:\n Any[1]"
17771777 @test replstr (AbstractDict{Integer,Integer}[Dict {Integer,Integer} (1 => 2 )]) ==
@@ -2166,8 +2166,8 @@ end
21662166@test string (Union{Nothing, AbstractVecOrMat}) == " Union{Nothing, AbstractVecOrMat}"
21672167@test string (Union{Nothing, AbstractVecOrMat{<: Integer }}) == " Union{Nothing, AbstractVecOrMat{<:Integer}}"
21682168@test string (M37012. BStruct{T, T} where T) == " $(curmod_prefix) M37012.B2{T, T} where T"
2169- @test string (M37012. BStruct{T, S} where {T<: Unsigned , S<: Signed }) == " $(curmod_prefix) M37012.B2{<:Signed , T} where T<:Unsigned"
2170- @test string (M37012. BStruct{T, S} where {T<: Signed , S<: T }) == " $(curmod_prefix) M37012.B2{<:T , T} where T<:Signed"
2169+ @test string (M37012. BStruct{T, S} where {T<: Unsigned , S<: Signed }) == " $(curmod_prefix) M37012.B2{S , T} where { T<:Unsigned, S<:Signed} "
2170+ @test string (M37012. BStruct{T, S} where {T<: Signed , S<: T }) == " $(curmod_prefix) M37012.B2{S , T} where { T<:Signed, S<:T} "
21712171@test string (Union{M37012. SimpleU, Nothing}) == " Union{Nothing, $(curmod_prefix) M37012.SimpleU}"
21722172@test string (Union{M37012. SimpleU, Nothing, T} where T) == " Union{Nothing, $(curmod_prefix) M37012.SimpleU, T} where T"
21732173@test string (Union{AbstractVector{T}, T} where T) == " Union{AbstractVector{T}, T} where T"
0 commit comments