diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-04-27 13:27:49 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-04-27 13:32:37 +0300 |
commit | 543df62aed1fcdcf3902b9b54ec4495a882b0fcc (patch) | |
tree | f1213bd11197d06431c9830260728f4708311698 /src | |
parent | b1aaf747754d40a721a2e3b4095b6eaf2384e770 (diff) | |
download | scala-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.scala | 3 |
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) |