Skip to content

Commit

Permalink
worlds test: generate needed MethodInstance (JuliaLang#39830)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored and ElOceanografo committed May 4, 2021
1 parent ec3ac37 commit a14f2ec
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 a14f2ec

Please sign in to comment.