aboutsummaryrefslogtreecommitdiff
path: root/test/dotty
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-06-29 09:23:34 +0200
committerMartin Odersky <odersky@gmail.com>2015-06-29 09:23:34 +0200
commit840aa9354a9708548cf0e21be08a552403851c97 (patch)
tree977554b896de3dd869bc95ac697091406c6c102b /test/dotty
parent5fff6d8c3d67685c0deb7a375a96e479029137eb (diff)
downloaddotty-840aa9354a9708548cf0e21be08a552403851c97.tar.gz
dotty-840aa9354a9708548cf0e21be08a552403851c97.tar.bz2
dotty-840aa9354a9708548cf0e21be08a552403851c97.zip
Fix rebase breakage around reporters.
Reporters are part of the context which is passed into a compiler run. Passing them as a separate option is an unnecessary complication.
Diffstat (limited to 'test/dotty')
-rw-r--r--test/dotty/partest/DPDirectCompiler.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/dotty/partest/DPDirectCompiler.scala b/test/dotty/partest/DPDirectCompiler.scala
index b04214893..885de8c62 100644
--- a/test/dotty/partest/DPDirectCompiler.scala
+++ b/test/dotty/partest/DPDirectCompiler.scala
@@ -23,9 +23,11 @@ class DPDirectCompiler(runner: DPTestRunner) extends nest.DirectCompiler(runner)
}
try {
- val processor = if (opts0.exists(_.startsWith("#"))) dotty.tools.dotc.Bench else dotty.tools.dotc.Main
+ val processor =
+ if (opts0.exists(_.startsWith("#"))) dotty.tools.dotc.Bench else dotty.tools.dotc.Main
val clogger = new ConsoleReporter(writer = clogWriter)(ctx)
- val reporter = processor.process((sources.map(_.toString) ::: opts0).toArray, ctx, Some(clogger))
+ val logCtx = ctx.fresh.setTyperState(ctx.typerState.withReporter(clogger))
+ val reporter = processor.process((sources.map(_.toString) ::: opts0).toArray, logCtx)
if (!reporter.hasErrors) runner.genPass()
else {
reporter.printSummary(ctx)