Skip to content

Commit 3a49d59

Browse files
committed
Revert "Use a This parameter instead of this.type in Tuple.toList"
This partially reverts commit 528bb7e.
1 parent b9bfde7 commit 3a49d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/Tuple.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ sealed trait Tuple extends Product {
1313
runtime.Tuples.toArray(this)
1414

1515
/** Create a copy of this tuple as a List */
16-
inline def toList[This >: this.type <: Tuple]: List[Union[This]] =
16+
inline def toList: List[Union[this.type]] =
1717
this.productIterator.toList
18-
.asInstanceOf[List[Union[This]]]
18+
.asInstanceOf[List[Union[this.type]]]
1919

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

0 commit comments

Comments
 (0)