Skip to content

Commit 7b48607

Browse files
committed
Fix scala#11792 (Tuple.fromProduct doesn't handle Product0)
1 parent f267f91 commit 7b48607

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/scala/runtime/Tuples.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ object Tuples {
5858
else TupleXXL.fromIArray(xs).asInstanceOf[Tuple]
5959

6060
def fromProduct(xs: Product): Tuple = (xs.productArity match {
61+
case 0 => EmptyTuple
6162
case 1 =>
6263
xs match {
6364
case xs: Tuple1[_] => xs

0 commit comments

Comments
 (0)