Skip to content

Commit

Permalink
Revert "Use a This parameter instead of this.type in Tuple.toList"
Browse files Browse the repository at this point in the history
This partially reverts commit 528bb7e.
  • Loading branch information
mbovel committed Jun 1, 2023
1 parent b9bfde7 commit 3a49d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/scala/Tuple.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ sealed trait Tuple extends Product {
runtime.Tuples.toArray(this)

/** Create a copy of this tuple as a List */
inline def toList[This >: this.type <: Tuple]: List[Union[This]] =
inline def toList: List[Union[this.type]] =
this.productIterator.toList
.asInstanceOf[List[Union[This]]]
.asInstanceOf[List[Union[this.type]]]

/** Create a copy of this tuple as an IArray */
inline def toIArray: IArray[Object] =
Expand Down

0 comments on commit 3a49d59

Please sign in to comment.