summaryrefslogtreecommitdiff
path: root/test/files/run/treePrint.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-27 07:56:36 +0000
committerPaul Phillips <paulp@improving.org>2011-01-27 07:56:36 +0000
commitd884d63800ad09a4f6cd540d419cbede91c08d9c (patch)
tree494a9fd2d25e26b22ef20487e8ee4edb6bbe8775 /test/files/run/treePrint.scala
parente40485618cea87366760628c3b264fd5c61790cf (diff)
downloadscala-d884d63800ad09a4f6cd540d419cbede91c08d9c.tar.gz
scala-d884d63800ad09a4f6cd540d419cbede91c08d9c.tar.bz2
scala-d884d63800ad09a4f6cd540d419cbede91c08d9c.zip
Some overdue organization and cleanups in the r...
Some overdue organization and cleanups in the repl. No review.
Diffstat (limited to 'test/files/run/treePrint.scala')
-rw-r--r--test/files/run/treePrint.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/files/run/treePrint.scala b/test/files/run/treePrint.scala
index 1fd1394e25..4c5f852582 100644
--- a/test/files/run/treePrint.scala
+++ b/test/files/run/treePrint.scala
@@ -2,6 +2,7 @@
*/
object Test {
import scala.tools.nsc._
+ import interpreter._
import java.io.{ OutputStream, BufferedReader, StringReader, PrintWriter, Writer, OutputStreamWriter}
val code = """
@@ -34,7 +35,8 @@ object Test {
settings.Ycompacttrees.value = true
val repl = new Interpreter(settings, new PrintWriter(new NullOutputStream))
+ val power = new Power(repl)
repl.interpret("""def initialize = "Have to interpret something or we get errors." """)
- println(repl.power mkTree code)
+ println(power mkTree code)
}
}