File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,24 +14,23 @@ import dotty.tools.dotc.Compiler
14
14
import dotty .tools .dotc
15
15
import dotty .tools .dotc .core .Phases .Phase
16
16
17
- class DottyTest /* extends ContextEscapeDetection*/ {
17
+ class DottyTest extends ContextEscapeDetection {
18
18
19
19
dotty.tools.dotc.parsing.Scanners // initialize keywords
20
20
21
21
implicit var ctx : Contexts .Context = {
22
- val base = new ContextBase
22
+ val base = new ContextBase {}
23
23
import base .settings ._
24
24
val ctx = base.initialCtx.fresh
25
25
base.initialize()(ctx)
26
26
ctx.setSetting(ctx.settings.encoding, " UTF8" )
27
27
ctx
28
28
}
29
- /*
29
+
30
30
override def getCtx : Context = ctx
31
31
override def clearCtx () = {
32
32
ctx = null
33
33
}
34
- */
35
34
private def compilerWithChecker (phase : String )(assertion: (tpd.Tree , Context ) => Unit ) = new Compiler {
36
35
override def phases = {
37
36
val allPhases = super .phases
You can’t perform that action at this time.
0 commit comments