Skip to content

Commit

Permalink
Refine append return type (#16140)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored Jan 16, 2023
2 parents 535dd89 + 4281b10 commit d99d9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/scala/Tuple.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ sealed trait Tuple extends Product {
object Tuple {

/** Type of a tuple with an element appended */
type Append[X <: Tuple, Y] <: Tuple = X match {
type Append[X <: Tuple, Y] <: NonEmptyTuple = X match {
case EmptyTuple => Y *: EmptyTuple
case x *: xs => x *: Append[xs, Y]
}
Expand Down

0 comments on commit d99d9bf

Please sign in to comment.