aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Contexts.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-02-04 02:37:40 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-02-04 23:31:03 +0100
commit208f7cde44a06947e452ba6c5132704caa4b1c3e (patch)
tree11dc92116f334a4477b9fcc0674da7089ad4af1e /src/dotty/tools/dotc/core/Contexts.scala
parent73fad44a11dafa507e1d358f1bc222b04319a594 (diff)
downloaddotty-208f7cde44a06947e452ba6c5132704caa4b1c3e.tar.gz
dotty-208f7cde44a06947e452ba6c5132704caa4b1c3e.tar.bz2
dotty-208f7cde44a06947e452ba6c5132704caa4b1c3e.zip
Compiler: use the reporter passed from the Driver
With this commit and the previous one, partest should finally correctly log the output of the compiler and display it at the end of its execution if compilation failed. Also make sure the initial Reporter in a Context is _not_ a ThrowingReporter. Previously, the initial Reporter was always overriden in Compiler by rootReporter so it had no effect, but this is not the case anymore, and the negative junit tests fail with the ThrowingReporter since they throw an exception instead of exiting with a certain number of errors.
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r--src/dotty/tools/dotc/core/Contexts.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala
index a5a0f4d65..14e8ccb52 100644
--- a/src/dotty/tools/dotc/core/Contexts.scala
+++ b/src/dotty/tools/dotc/core/Contexts.scala
@@ -481,7 +481,7 @@ object Contexts {
outer = NoContext
period = InitialPeriod
mode = Mode.None
- typerState = new TyperState(new ThrowingReporter(new ConsoleReporter()))
+ typerState = new TyperState(new ConsoleReporter())
printerFn = new RefinedPrinter(_)
owner = NoSymbol
sstate = settings.defaultState