Skip to content

Commit d4c3891

Browse files
committed
fixed test case for #43296
1 parent 7f52189 commit d4c3891

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/compiler/inference.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ end
138138
Core.Compiler.limit_type_size(Type{Any}, Type, Union{}, 0, 0) ==
139139
Type{Any}
140140

141-
# issue #43296 #43296
141+
# issue #43296
142142
struct C43296{t,I} end
143143
r43296(b) = r43296(typeof(b))
144144
r43296(::Type) = nothing
@@ -149,7 +149,8 @@ f43296(g, :) = h
149149
k43296(b, j, :) = l
150150
k43296(b, j, ::Nothing) = b
151151
i43296(b, j) = k43296(b, j, r43296(j))
152-
@test only(Base.return_types(i43296, (Int, C43296{C43296{C43296{Val, Tuple}, Tuple}}))) == Int
152+
@test only(Base.return_types(i43296, (Int, C43296{C43296{C43296{Val, Tuple}}}))) <: Int
153+
@test only(Base.return_types(i43296, (Int, C43296{C43296{C43296{Val, <:Tuple}}}))) <: Int
153154

154155
abstract type e43296{a, j} <: AbstractArray{a, j} end
155156
abstract type b43296{a, j, c, d} <: e43296{a, j} end

0 commit comments

Comments
 (0)