File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,7 @@ class Compiler {
64
64
new InterceptedMethods ,
65
65
new Literalize ),
66
66
List (new Erasure ),
67
- List (new CapturedVars ),
68
- List (new Constructors )/* ,
67
+ List (new CapturedVars , new Constructors )/* ,
69
68
List(new LambdaLift)*/
70
69
)
71
70
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class CapturedVars extends MiniPhaseTransform with SymTransformer { thisTransfor
45
45
}
46
46
47
47
override def init (implicit ctx : Context , info : TransformerInfo ): Unit =
48
- (new CollectCaptured ).runOver(ctx.compilationUnit.tpdTree)
48
+ (new CollectCaptured )(ctx.withPhase(thisTransform)) .runOver(ctx.compilationUnit.tpdTree)
49
49
50
50
override def transformSym (sd : SymDenotation )(implicit ctx : Context ): SymDenotation =
51
51
if (captured(sd.symbol)) {
You can’t perform that action at this time.
0 commit comments