From 30bd586417693fed39045420548b82e9616f0111 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 19 Nov 2016 00:44:23 +0100 Subject: Revert 53cd512 Re-enable context-leak detection by reverting 53cd512. But leak detection seems to be leaky itself :-) --- test/test/DottyTest.scala | 7 +++---- 1 file 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 -- cgit v1.2.3