summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-06-03 13:18:17 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-06-03 13:18:17 +0200
commitb24e7573a17332606d9f9da49a397e02abec1b63 (patch)
treee3f2aab9c978a8f222d3c4755f654a4520855f68 /src
parentf0daf47f7d983ca7b429b7c386d270c41d2889f4 (diff)
parentc98aa6f9b149550243b68274e24a6f3174b7f85b (diff)
downloadscala-b24e7573a17332606d9f9da49a397e02abec1b63.tar.gz
scala-b24e7573a17332606d9f9da49a397e02abec1b63.tar.bz2
scala-b24e7573a17332606d9f9da49a397e02abec1b63.zip
Merge pull request #3803 from xeno-by/ticket/8637
SI-8637 fixes toolbox phase corruption
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/reflect/ToolBoxFactory.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/reflect/ToolBoxFactory.scala b/src/compiler/scala/tools/reflect/ToolBoxFactory.scala
index 3b12086cc7..923297bafb 100644
--- a/src/compiler/scala/tools/reflect/ToolBoxFactory.scala
+++ b/src/compiler/scala/tools/reflect/ToolBoxFactory.scala
@@ -141,6 +141,7 @@ abstract class ToolBoxFactory[U <: JavaUniverse](val u: U) { factorySelf =>
val run = new Run
run.symSource(ownerClass) = NoAbstractFile // need to set file to something different from null, so that currentRun.defines works
phase = run.typerPhase // need to set a phase to something <= typerPhase, otherwise implicits in typedSelect will be disabled
+ globalPhase = run.typerPhase // amazing... looks like phase and globalPhase are different things, so we need to set them separately
currentTyper.context.setReportErrors() // need to manually set context mode, otherwise typer.silent will throw exceptions
reporter.reset()