Skip to content

Commit d2b50e3

Browse files
nicolasstuckirethab
authored andcommitted
Avoid duplication of empty array
1 parent 0c867f3 commit d2b50e3

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)