Skip to content

Commit b92a32a

Browse files
just omit uninferred test on v1.6
1 parent d636946 commit b92a32a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/static/indexing.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,13 @@ end
189189
end
190190

191191
x = LinearIndices(map(Base.Slice, (static(0):static(3), static(3):static(5), static(-2):static(0))))
192-
@test @inferred(ArrayInterface.static_getindex(x, 0, 3, -2)) === 1
192+
193+
if VERSION >= v"1.7"
194+
@test @inferred(ArrayInterface.static_getindex(x, 0, 3, -2)) === 1
195+
else
196+
@test ArrayInterface.static_getindex(x, 0, 3, -2) === 1
197+
end
198+
193199
@test @inferred(ArrayInterface.static_getindex(x, static(0), static(3), static(-2))) === 1
194200

195201
@test @inferred(ArrayInterface.static_getindex(linear, linear)) == linear

0 commit comments

Comments
 (0)