Skip to content

Commit 89720e9

Browse files
authored
Catch the invalidation-without-codechange case
1 parent 56f2040 commit 89720e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/worlds.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ applyf(Any[1])
275275
wany3 = worlds(instance(applyf, (Vector{Any},)))
276276
src3 = code_typed(applyf, (Vector{Any},))[1]
277277
@test (wany3 == wany2) == equal(src3, src2) # don't invalidate unless you also change the code
278-
f(::Vector{Int}) = 4
278+
f(::AbstractVector) = 4 # next test would pass if this were ::Vector{Int}
279279
applyf(Any[1])
280280
wany4 = worlds(instance(applyf, (Vector{Any},)))
281281
src4 = code_typed(applyf, (Vector{Any},))[1]
282-
@test (wany4 == wany3) == equal(src4, src3)
282+
@test_broken (wany4 == wany3) == equal(src4, src3)
283283
f(::Dict) = 5
284284
applyf(Any[1])
285285
wany5 = worlds(instance(applyf, (Vector{Any},)))

0 commit comments

Comments
 (0)