Skip to content

Commit

Permalink
worlds test: generate needed MethodInstance
Browse files Browse the repository at this point in the history
Closes #39828
  • Loading branch information
timholy committed Feb 25, 2021
1 parent 936e84f commit 8e49232
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/worlds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ src4 = code_typed(applyf35855_2, (Vector{Any},))[1]
@test !(wany4 == wany3) || equal(src4, src3) # code doesn't change unless you invalidate

## ambiguities do not trigger invalidation
mi = instance(+, (AbstractChar, UInt8))
m = which(+, (Char, UInt8))
mi = Core.Compiler.specialize_method(m, Tuple{typeof(+), AbstractChar, UInt8}, Core.svec())
w = worlds(mi)

abstract type FixedPoint35855{T <: Integer} <: Real end
Expand Down

0 comments on commit 8e49232

Please sign in to comment.