File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class CapturedVars extends MiniPhase with IdentityDenotTransformer { thisTransfo
91
91
}
92
92
93
93
override def prepareForValDef (vdef : ValDef )(implicit ctx : Context ) = {
94
- val sym = vdef.symbol
94
+ val sym = vdef.symbol(ctx.withPhase(thisTransform))
95
95
if (captured contains sym) {
96
96
val newd = sym.denot(ctx.withPhase(thisTransform)).copySymDenotation(
97
97
info = refClass(sym.info.classSymbol, sym.hasAnnotation(defn.VolatileAnnot )).typeRef,
@@ -119,7 +119,7 @@ class CapturedVars extends MiniPhase with IdentityDenotTransformer { thisTransfo
119
119
override def transformIdent (id : Ident )(implicit ctx : Context , info : TransformerInfo ): Tree = {
120
120
val vble = id.symbol
121
121
if (captured(vble))
122
- (id select nme.elem).ensureConforms(vble.denot(ctx.withPhase(thisTransform)).info)
122
+ id. select( nme.elem).ensureConforms(vble.denot(ctx.withPhase(thisTransform)).info)
123
123
else id
124
124
}
125
125
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ class ElimErasedValueType extends MiniPhaseTransform with InfoTransformer {
23
23
24
24
override def runsAfter : Set [Class [_ <: Phase ]] = Set (classOf [Erasure ])
25
25
26
- // override def treeTransformPhase(implicit ctx: Context, info: TransformerInfo) =
27
- // groupEndPhase
26
+ override def treeTransformPhase (implicit ctx : Context , info : TransformerInfo ) =
27
+ groupEndPhase
28
28
29
29
def transformInfo (tp : Type , sym : Symbol )(implicit ctx : Context ): Type = sym match {
30
30
case sym : ClassSymbol if sym is ModuleClass =>
You can’t perform that action at this time.
0 commit comments