summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/Trees.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-03 11:30:33 -0700
committerPaul Phillips <paulp@improving.org>2012-05-03 11:45:21 -0700
commit453d615fb3c6d0db3a0a43c9232bc12584e39107 (patch)
tree2698a7a2c09c47b3a0f25722fa47f90ef49641bc /src/compiler/scala/tools/nsc/ast/Trees.scala
parent03e3a40951ec7d1612cb668973f4d2e5e01872e9 (diff)
downloadscala-453d615fb3c6d0db3a0a43c9232bc12584e39107.tar.gz
scala-453d615fb3c6d0db3a0a43c9232bc12584e39107.tar.bz2
scala-453d615fb3c6d0db3a0a43c9232bc12584e39107.zip
Fix for SI-5608, crasher with value classes.
Anyone who doubts the importance of avoiding duplication is invited to look closely at the cause of this bug as revealed in this one line patch.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/Trees.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/Trees.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala
index a355db4d9a..4c509778e9 100644
--- a/src/compiler/scala/tools/nsc/ast/Trees.scala
+++ b/src/compiler/scala/tools/nsc/ast/Trees.scala
@@ -195,7 +195,7 @@ trait Trees extends reflect.internal.Trees { self: Global =>
def SelectFromArray(tree: Tree, qualifier: Tree, selector: Name, erasure: Type) =
new SelectFromArray(qualifier, selector, erasure).copyAttrs(tree)
def InjectDerivedValue(tree: Tree, arg: Tree) =
- new InjectDerivedValue(arg)
+ new InjectDerivedValue(arg).copyAttrs(tree)
def TypeTreeWithDeferredRefCheck(tree: Tree) = tree match {
case dc@TypeTreeWithDeferredRefCheck() => new TypeTreeWithDeferredRefCheck()(dc.check).copyAttrs(tree)
}