From 898174666fd6170b6a4d2194a2e7b3a58b0e3223 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Sun, 3 Nov 2024 10:22:54 +0100 Subject: [PATCH] restrict dispatch from `::Tuple` to `::NTuple` There's some disagreement as to whether heterogeneous tuples should be supported, so leaving them for a later PR to get this one merged more easily. --- base/sort.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/sort.jl b/base/sort.jl index fed295f72a7c01..4ac8fbce479cac 100644 --- a/base/sort.jl +++ b/base/sort.jl @@ -1815,7 +1815,7 @@ module _SortTupleStable end function sort( - tup::Tuple; + tup::NTuple; lt = isless, by = identity, rev::Union{Nothing, Bool} = nothing,