summaryrefslogtreecommitdiff
path: root/test/files/run/t1500.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-03 23:51:49 +0000
committerPaul Phillips <paulp@improving.org>2010-02-03 23:51:49 +0000
commit2b82a20d75629e7bdd2fd3d4d4613fc2ef072a78 (patch)
treef3576cf0318b4fafb550e09d6fd93ebf022b76bb /test/files/run/t1500.scala
parent19e78a93e6b1c889460936f0c96728cb0e81726d (diff)
downloadscala-2b82a20d75629e7bdd2fd3d4d4613fc2ef072a78.tar.gz
scala-2b82a20d75629e7bdd2fd3d4d4613fc2ef072a78.tar.bz2
scala-2b82a20d75629e7bdd2fd3d4d4613fc2ef072a78.zip
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.
Diffstat (limited to 'test/files/run/t1500.scala')
-rw-r--r--test/files/run/t1500.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/t1500.scala b/test/files/run/t1500.scala
index de79b84e75..ce6278cd05 100644
--- a/test/files/run/t1500.scala
+++ b/test/files/run/t1500.scala
@@ -18,10 +18,10 @@ object Test {
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._