Skip to content

Commit c8638cf

Browse files
committed
Fix TupleXXL.productPrefix
The current version returns `"TupleXXL"` which leaks erasure details. From the user perspective, any tuple lager than 2 is of type `Tuple` which is a `Product`. Therefore the `productPrefix` should be `Tuple`.
1 parent bfd9892 commit c8638cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/runtime/TupleXXL.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ final class TupleXXL private (es: IArray[Object]) extends Product {
55

66
def productElement(n: Int): Any = es(n)
77
def productArity: Int = es.length
8-
override def productPrefix: String = "TupleXXL"
8+
override def productPrefix: String = "Tuple"
99

1010
override def toString: String =
1111
elems.asInstanceOf[Array[Object]].mkString("(", ",", ")")

0 commit comments

Comments
 (0)