@@ -1509,3 +1509,23 @@ end
15091509
15101510#  issue #26083
15111511@testintersect (Base. RefValue{<: Tuple }, Ref{Tuple{M}} where  M, Base. RefValue{Tuple{M}} where  M)
1512+ 
1513+ #  issue #31899
1514+ struct  SA{N,L}
1515+ end 
1516+ @testintersect (Tuple{Type{SA{Int, L} where  L}, Type{SA{Int, Int8}}},
1517+                Tuple{Type{<: SA{N, L} }, Type{<: SA{N, L} }} where  {N,L},
1518+                Union{})
1519+ @testintersect (Tuple{Type{SA{2 , L} where  L}, Type{SA{2 , 16 }}},
1520+                Tuple{Type{<: SA{N, L} }, Type{<: SA{N, L} }} where  {L,N},
1521+                Union{})
1522+ @testintersect (Tuple{Type{SA{2 , L} where  L}, Type{SA{2 , 16 }}},
1523+                Tuple{Type{<: SA{N, L} }, Type{<: SA{N, L} }} where  {N,L},
1524+                Union{})
1525+ @testintersect (Tuple{Type{SA{2 , L}}, Type{SA{2 , L}}} where  L,
1526+                Tuple{Type{<: SA{N, L} }, Type{<: SA{N, L} }} where  {N,L},
1527+                Tuple{Type{SA{2 , L}}, Type{SA{2 , L}}} where  L)
1528+ @testintersect (Tuple{Type{SA{2 , L}}, Type{SA{2 , 16 }}} where  L,
1529+                Tuple{Type{<: SA{N, L} }, Type{<: SA{N, L} }} where  {N,L},
1530+                #  TODO : this could be narrower
1531+                Tuple{Type{SA{2 , L}}, Type{SA{2 , 16 }}} where  L)
0 commit comments