Skip to content

Commit dd1c886

Browse files
author
oscarddssmith
committed
don't test broken inference on 1.6
1 parent c1e9a52 commit dd1c886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/trees.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ AbstractTrees.nodetype(::IntTree) = IntTree
211211
@testset "IntTree" begin
212212
itree = IntTree(1, [IntTree(2, IntTree[])])
213213
iter = Leaves(itree)
214-
@inferred first(iter)
214+
(v"1.6-" < VERSION < v"1.7-") || @inferred first(iter) # 1.6 has a weird inference bug
215215
@test first(iter) == IntTree(2, IntTree[])
216216
val, state = iterate(iter)
217217
@test Base.return_types(iterate, Tuple{typeof(iter), typeof(state)}) ==

0 commit comments

Comments
 (0)