We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75556ad commit e060784Copy full SHA for e060784
library/src/scala/Tuple.scala
@@ -12,9 +12,8 @@ sealed trait Tuple extends Product {
12
runtime.Tuples.toArray(this)
13
14
/** Create a copy this tuple as a List */
15
- inline def toList: List[Union[this.type]] =
16
- this.productIterator.toList
17
- .asInstanceOf[List[Union[this.type]]]
+ inline def toList[This >: this.type <: Tuple]: List[Union[This]] =
+ this.productIterator.toList.asInstanceOf[List[Union[This]]]
18
19
/** Create a copy this tuple as an IArray */
20
inline def toIArray: IArray[Object] =
0 commit comments