Skip to content

Commit

Permalink
update inference reflection usage for 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Oct 30, 2024
1 parent a03c5cd commit bb86259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/compiler/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5166,9 +5166,9 @@ issue55882_nfields(x::Union{T,Nothing}) where T<:Number = nfields(x)
@test only(Base.return_types(issue55882_nfields)) <: Int

# JuliaLang/julia#56248
@test only(Base.infer_return_type() do
@test only(Base.return_types() do
TypeVar(:Issue56248, 1)
end) === Union{}
@test only(Base.infer_return_type() do
@test only(Base.Base.return_types() do
TypeVar(:Issue56248, Any, 1)
end) === Union{}

0 comments on commit bb86259

Please sign in to comment.