Skip to content

Commit d853348

Browse files
authored
Merge pull request #9039 from dotty-staging/avoid-duplication-of-empty-array
Avoid duplication of empty array
2 parents 6345477 + 5f134a8 commit d853348

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)