Skip to content

Commit

Permalink
Fix ambiguity in checkbounds_linear_indices
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Feb 20, 2017
1 parent cb50dee commit 0bd8e2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,11 @@ function checkbounds_linear_indices(::Type{Bool}, IA::Tuple{AbstractUnitRange,Va
@_inline_meta
checkindex(Bool, IA[1], i)
end
function checkbounds_linear_indices(::Type{Bool}, IA::Tuple, i::Union{Slice,Colon})
function checkbounds_linear_indices(::Type{Bool}, IA::Tuple{Vararg{OneTo}}, i::Union{Slice,Colon})
partial_linear_indexing_warning_lookup(length(IA))
true
end
function checkbounds_linear_indices(::Type{Bool}, IA::Tuple{AbstractUnitRange,Vararg{AbstractUnitRange}}, i::Union{Slice,Colon})
partial_linear_indexing_warning_lookup(length(IA))
true
end
Expand Down

0 comments on commit 0bd8e2b

Please sign in to comment.