We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f754c commit 88d11faCopy full SHA for 88d11fa
src/dotty/tools/dotc/Compiler.scala
@@ -63,8 +63,7 @@ class Compiler {
63
new InterceptedMethods,
64
new Literalize),
65
List(new Erasure),
66
- List(new CapturedVars),
67
- List(new Constructors)/*,
+ List(new CapturedVars, new Constructors)/*,
68
List(new LambdaLift)*/
69
)
70
src/dotty/tools/dotc/transform/CapturedVars.scala
@@ -45,7 +45,7 @@ class CapturedVars extends MiniPhaseTransform with SymTransformer { thisTransfor
45
}
46
47
override def init(implicit ctx: Context, info: TransformerInfo): Unit =
48
- (new CollectCaptured).runOver(ctx.compilationUnit.tpdTree)
+ (new CollectCaptured)(ctx.withPhase(thisTransform)).runOver(ctx.compilationUnit.tpdTree)
49
50
override def transformSym(sd: SymDenotation)(implicit ctx: Context): SymDenotation =
51
if (captured(sd.symbol)) {
0 commit comments