Skip to content

Commit 6c944ee

Browse files
JeffBezansonKristofferC
authored andcommitted
increase specialization of _totuple (#41515)
Helps #41512 (cherry picked from commit 468b157)
1 parent 3e0851f commit 6c944ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/tuple.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function _totuple_err(@nospecialize T)
323323
throw(ArgumentError("too few elements for tuple type $T"))
324324
end
325325

326-
function _totuple(T, itr, s...)
326+
function _totuple(::Type{T}, itr, s::Vararg{Any,N}) where {T,N}
327327
@_inline_meta
328328
y = iterate(itr, s...)
329329
y === nothing && _totuple_err(T)

0 commit comments

Comments
 (0)