diff options
Diffstat (limited to 'test/test/DottyTest.scala')
-rw-r--r-- | test/test/DottyTest.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test/DottyTest.scala b/test/test/DottyTest.scala index 4b767b318..4c8cd8a7b 100644 --- a/test/test/DottyTest.scala +++ b/test/test/DottyTest.scala @@ -14,24 +14,23 @@ import dotty.tools.dotc.Compiler import dotty.tools.dotc import dotty.tools.dotc.core.Phases.Phase -class DottyTest /*extends ContextEscapeDetection*/ { +class DottyTest extends ContextEscapeDetection{ dotty.tools.dotc.parsing.Scanners // initialize keywords implicit var ctx: Contexts.Context = { - val base = new ContextBase + val base = new ContextBase {} import base.settings._ val ctx = base.initialCtx.fresh base.initialize()(ctx) ctx.setSetting(ctx.settings.encoding, "UTF8") ctx } -/* + override def getCtx: Context = ctx override def clearCtx() = { ctx = null } -*/ private def compilerWithChecker(phase: String)(assertion:(tpd.Tree, Context) => Unit) = new Compiler { override def phases = { val allPhases = super.phases |