Skip to content

Commit

Permalink
Update test/compiler/inference.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
  • Loading branch information
Keno and vtjnash authored Oct 8, 2020
1 parent 323d56d commit a6e3b1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/compiler/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,6 @@ f37532(T, x) = (Core.bitcast(Ptr{T}, x); x)
# Issue #37943
f37943(x::Any, i::Int) = getfield((x::Pair{false, Int}), i)
g37943(i::Int) = fieldtype(Pair{false, T} where T, i)
@test code_typed(f37943, Tuple{Any, Int})[1][2] === Union{}
@test code_typed(g37943, Tuple{Int})[1][2] === Any

@test only(Base.return_types(f37943, Tuple{Any, Int})) === Union{}
@test only(Base.return_types(g37943, Tuple{Int})) === Any

0 comments on commit a6e3b1e

Please sign in to comment.