diff --git a/base/tuple.jl b/base/tuple.jl index cc4e52c930b80..ead8bc9919a86 100644 --- a/base/tuple.jl +++ b/base/tuple.jl @@ -322,7 +322,7 @@ function _totuple_err(@nospecialize T) throw(ArgumentError("too few elements for tuple type $T")) end -function _totuple(T, itr, s...) +function _totuple(::Type{T}, itr, s::Vararg{Any,N}) where {T,N} @_inline_meta y = iterate(itr, s...) y === nothing && _totuple_err(T)