Skip to content

Commit

Permalink
NFC remove deprecated Vararg{<:Any} (#105)
Browse files Browse the repository at this point in the history
causes warnings during tests.
  • Loading branch information
oscardssmith authored Jan 25, 2023
1 parent 6903c1f commit 9faf95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arrayops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Base.checkindex(::Type{Bool}, inds::AbstractUnitRange, idx::VecRange) =
Base.checkindex(::Type{Bool}, inds::AbstractUnitRange, idx::Vec) =
all(first(inds) <= idx) && all(idx <= last(inds))

@inline _checkarity(::AbstractArray{<:Any,N}, ::Vararg{<:Any,N}) where {N} =
@inline _checkarity(::AbstractArray{<:Any,N}, ::Vararg{Any,N}) where {N} =
nothing

@inline _checkarity(::T, ::Any) where {T <: AbstractArray} =
Expand All @@ -241,7 +241,7 @@ Base.checkindex(::Type{Bool}, inds::AbstractUnitRange, idx::Vec) =
"""))
end

_checkarity(::AbstractArray{<:Any,N}, ::Vararg{<:Any,M}) where {N,M} =
_checkarity(::AbstractArray{<:Any,N}, ::Vararg{Any,M}) where {N,M} =
throw(ArgumentError("""
$M indices are given to $N-dimensional array.
Exactly $N (non-mask) indices have to be specified when using SIMD.
Expand Down

0 comments on commit 9faf95f

Please sign in to comment.