diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-11-07 22:03:13 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-11-07 22:03:13 +0100 |
commit | a7cc894ff2b4c5b661890272ec401cde12da3f9e (patch) | |
tree | 02de5880d1ad6d59bfd4c58494b293c40ce7bf60 /src/compiler | |
parent | cac5a08611f9511ba4d94b99db630404efae190a (diff) | |
download | scala-a7cc894ff2b4c5b661890272ec401cde12da3f9e.tar.gz scala-a7cc894ff2b4c5b661890272ec401cde12da3f9e.tar.bz2 scala-a7cc894ff2b4c5b661890272ec401cde12da3f9e.zip |
More principled tree copying.
Canonical > home-spun.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/CleanUp.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/CleanUp.scala b/src/compiler/scala/tools/nsc/transform/CleanUp.scala index 5318f98fa8..847ca574a9 100644 --- a/src/compiler/scala/tools/nsc/transform/CleanUp.scala +++ b/src/compiler/scala/tools/nsc/transform/CleanUp.scala @@ -628,7 +628,7 @@ abstract class CleanUp extends Transform with ast.TreeDSL { super.transform(arg) case Apply(appMeth, List(elem0, Apply(wrapArrayMeth, List(rest @ ArrayValue(elemtpt, _))))) if wrapArrayMeth.symbol == Predef_wrapArray(elemtpt.tpe) && appMeth.symbol == ArrayModule_apply(elemtpt.tpe) => - super.transform(rest.copy(elems = elem0 :: rest.elems).copyAttrs(rest)) + super.transform(treeCopy.ArrayValue(rest, rest.elemtpt, elem0 :: rest.elems)) case _ => super.transform(tree) |