Skip to content

Commit 5f134a8

Browse files
committed
Avoid duplication of empty array
1 parent 0a62671 commit 5f134a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/deriving.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ object deriving {
6464
}
6565

6666
/** The empty product */
67-
object EmptyProduct extends ArrayProduct(Array[AnyRef]())
67+
object EmptyProduct extends ArrayProduct(Array.emptyObjectArray)
6868

6969
/** Helper method to select a product element */
7070
def productElement[T](x: Any, idx: Int) =

0 commit comments

Comments
 (0)