Skip to content

Commit

Permalink
increase specialization of _totuple (#41515)
Browse files Browse the repository at this point in the history
Helps #41512

(cherry picked from commit 468b157)
  • Loading branch information
JeffBezanson authored and KristofferC committed Jul 19, 2021
1 parent 3e0851f commit 6c944ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/tuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,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)
Expand Down

0 comments on commit 6c944ee

Please sign in to comment.