Skip to content

Commit 4281b10

Browse files
committed
Refine append return type
1 parent 5d1497d commit 4281b10

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)