Skip to content

Commit d99d9bf

Browse files
authored
Refine append return type (#16140)
2 parents 535dd89 + 4281b10 commit d99d9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ sealed trait Tuple extends Product {
8383
object Tuple {
8484

8585
/** Type of a tuple with an element appended */
86-
type Append[X <: Tuple, Y] <: Tuple = X match {
86+
type Append[X <: Tuple, Y] <: NonEmptyTuple = X match {
8787
case EmptyTuple => Y *: EmptyTuple
8888
case x *: xs => x *: Append[xs, Y]
8989
}

0 commit comments

Comments
 (0)