From 2b82a20d75629e7bdd2fd3d4d4613fc2ef072a78 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 3 Feb 2010 23:51:49 +0000 Subject: A big push to make the interpreter easier to in... A big push to make the interpreter easier to instantiate without having to dodge bullets. It shouldn't have to be any harder than this: scala> new scala.tools.nsc.Interpreter().evalExpr[Int]("5*5") res0: Int = 25 ...and now it isn't. Review by community. --- test/files/run/t1501.scala | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test/files/run/t1501.scala') diff --git a/test/files/run/t1501.scala b/test/files/run/t1501.scala index 851daae0bb..f1eb8f287d 100644 --- a/test/files/run/t1501.scala +++ b/test/files/run/t1501.scala @@ -28,12 +28,10 @@ object Test { .text def main(args: Array[String]) = { - - val tool = new Interpreter(new Settings()) + val settings = new Settings() + settings.classpath.value = System.getProperty("java.class.path") + val tool = new Interpreter(settings) val global = tool.compiler - // when running that compiler, give it a scala-library to the classpath - global.settings.classpath.value = System.getProperty("java.class.path") - import global._ import definitions._ -- cgit v1.2.3