Skip to content

Commit 29a3e1d

Browse files
committed
Maintain reporters supplied by partest.
1 parent b26c366 commit 29a3e1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class Compiler {
112112
(start.setRunInfo(new RunInfo(start)) /: defn.RootImportFns)(addImport)
113113
}
114114

115-
protected def rootReporter(implicit ctx: Context): Reporter = new ConsoleReporter()(ctx)
115+
protected def rootReporter(implicit ctx: Context): Reporter = ctx.typerState.reporter
116116

117117
def reset()(implicit ctx: Context): Unit = {
118118
ctx.base.reset()

src/dotty/tools/dotc/Driver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class Driver extends DotClass {
3434

3535
def setup(args: Array[String], rootCtx: Context): (List[String], Context) = {
3636
val summary = CompilerCommand.distill(args)(rootCtx)
37-
implicit val ctx: Context = initCtx.fresh.setSettings(summary.sstate)
37+
implicit val ctx: Context = rootCtx.fresh.setSettings(summary.sstate)
3838
val fileNames = CompilerCommand.checkUsage(summary, sourcesRequired)
3939
(fileNames, ctx)
4040
}

0 commit comments

Comments
 (0)