diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-25 19:55:53 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-25 19:55:53 +0000 |
commit | 6ee24a3c5d31ef769e47410d8806a5f4bd7a06bf (patch) | |
tree | e0e5352fba603060439c6fe9e1d024192eb32bd5 /test/files/run | |
parent | c0b615fe80fd052d5c87f39cfa6626da43c03669 (diff) | |
download | scala-6ee24a3c5d31ef769e47410d8806a5f4bd7a06bf.tar.gz scala-6ee24a3c5d31ef769e47410d8806a5f4bd7a06bf.tar.bz2 scala-6ee24a3c5d31ef769e47410d8806a5f4bd7a06bf.zip |
While working on partest discovered that Compil...
While working on partest discovered that CompilerCommand ignores half
its constructor arguments and a couple dozen places blithely pass it
those arguments as if they're being used. Then there were setups like
this:
class OfflineCompilerCommand(
arguments: List[String],
settings: Settings,
error: String => Unit,
interactive: Boolean)
extends CompilerCommand(arguments, new Settings(error), error, false)
Hey offline compiler command, why throw away the perfectly good settings
you were given? Ever heard 'reduce, reuse, recycle'? How did you ever
work... or do you? No review.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/programmatic-main.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/run/programmatic-main.scala b/test/files/run/programmatic-main.scala index 7c5b016f52..9c7d0b7095 100644 --- a/test/files/run/programmatic-main.scala +++ b/test/files/run/programmatic-main.scala @@ -1,8 +1,7 @@ import scala.tools.nsc._ import io.Path -object Test -{ +object Test { val cwd = Option(System.getProperty("partest.cwd")) getOrElse "." val basedir = Path(cwd).parent / "lib" path val baseargs = Array("-usejavacp", "-bootclasspath", basedir + "/scala-library.jar", "-cp", basedir + "/scala-compiler.jar") |