summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-04-27 13:27:49 +0300
committerEugene Burmako <xeno.by@gmail.com>2012-04-27 13:32:37 +0300
commit543df62aed1fcdcf3902b9b54ec4495a882b0fcc (patch)
treef1213bd11197d06431c9830260728f4708311698 /src
parentb1aaf747754d40a721a2e3b4095b6eaf2384e770 (diff)
downloadscala-543df62aed1fcdcf3902b9b54ec4495a882b0fcc.tar.gz
scala-543df62aed1fcdcf3902b9b54ec4495a882b0fcc.tar.bz2
scala-543df62aed1fcdcf3902b9b54ec4495a882b0fcc.zip
fixes SI-5713
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/ToolBoxes.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ToolBoxes.scala b/src/compiler/scala/tools/nsc/ToolBoxes.scala
index 5b2b5ff5e9..8bf977090b 100644
--- a/src/compiler/scala/tools/nsc/ToolBoxes.scala
+++ b/src/compiler/scala/tools/nsc/ToolBoxes.scala
@@ -39,7 +39,8 @@ trait ToolBoxes { self: Global =>
def runExpr(tree0: Tree, freeTypes: Map[FreeType, Type] = Map[FreeType, Type]()): Any = {
var tree = substituteFreeTypes(tree0, freeTypes)
// need to reset the tree, otherwise toolbox will refuse to work with it
- tree = resetAllAttrs(tree0.duplicate)
+ // upd. this has to be done by the user himself, otherwise we run into troubles. see SI-5713
+// tree = resetAllAttrs(tree0.duplicate)
val imported = importer.importTree(tree)
val toolBox = libraryClasspathMirror.mkToolBox(frontEnd.asInstanceOf[libraryClasspathMirror.FrontEnd], options)
try toolBox.runExpr(imported)