Skip to content

Commit

Permalink
Add test for inferability of index_sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Apr 7, 2017
1 parent 81c0a22 commit bfe0273
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,10 @@
a[SVector{0,Int}()] = 5.0
@test b == a
end

@testset "inferabilty of index_sizes helper" begin
# see JuliaLang/julia#21244
# it's not about inferring the correct type, but about inference throwing an error
@test code_warntype(DevNull, StaticArrays.index_sizes, Tuple{Vararg{Any}}) == nothing
end
end

0 comments on commit bfe0273

Please sign in to comment.