Skip to content

Commit

Permalink
Introduce Boxing for Singletons
Browse files Browse the repository at this point in the history
  • Loading branch information
Decel authored Oct 26, 2023
1 parent 012d456 commit 3ed582c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/transform/ArrayApply.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ArrayApply extends MiniPhase {
if defn.WrapArrayMethods().contains(wrapArrayMeth.symbol) &&
rest.elems.lengthIs < transformListApplyLimit =>
rest.elems.foldRight(tpd.ref(defn.NilModule)): (elem, acc) =>
tpd.New(defn.ConsType, List(elem, acc))
tpd.New(defn.ConsType, List(elem.ensureConforms(defn.ObjectType), acc))

case _ =>
tree
Expand Down

0 comments on commit 3ed582c

Please sign in to comment.