Skip to content

Commit 30bd586

Browse files
committed
Revert 53cd512
Re-enable context-leak detection by reverting 53cd512. But leak detection seems to be leaky itself :-)
1 parent 9bada40 commit 30bd586

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/test/DottyTest.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,23 @@ import dotty.tools.dotc.Compiler
1414
import dotty.tools.dotc
1515
import dotty.tools.dotc.core.Phases.Phase
1616

17-
class DottyTest /*extends ContextEscapeDetection*/ {
17+
class DottyTest extends ContextEscapeDetection{
1818

1919
dotty.tools.dotc.parsing.Scanners // initialize keywords
2020

2121
implicit var ctx: Contexts.Context = {
22-
val base = new ContextBase
22+
val base = new ContextBase {}
2323
import base.settings._
2424
val ctx = base.initialCtx.fresh
2525
base.initialize()(ctx)
2626
ctx.setSetting(ctx.settings.encoding, "UTF8")
2727
ctx
2828
}
29-
/*
29+
3030
override def getCtx: Context = ctx
3131
override def clearCtx() = {
3232
ctx = null
3333
}
34-
*/
3534
private def compilerWithChecker(phase: String)(assertion:(tpd.Tree, Context) => Unit) = new Compiler {
3635
override def phases = {
3736
val allPhases = super.phases

0 commit comments

Comments
 (0)