Skip to content

Commit bfe0273

Browse files
committed
Add test for inferability of index_sizes
1 parent 81c0a22 commit bfe0273

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/indexing.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,10 @@
124124
a[SVector{0,Int}()] = 5.0
125125
@test b == a
126126
end
127+
128+
@testset "inferabilty of index_sizes helper" begin
129+
# see JuliaLang/julia#21244
130+
# it's not about inferring the correct type, but about inference throwing an error
131+
@test code_warntype(DevNull, StaticArrays.index_sizes, Tuple{Vararg{Any}}) == nothing
132+
end
127133
end

0 commit comments

Comments
 (0)