File tree 1 file changed +4
-4
lines changed
src/dotty/tools/dotc/transform
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ object ExplicitOuter {
111
111
/** Ensure that class `cls` has outer accessors */
112
112
def ensureOuterAccessors (cls : ClassSymbol )(implicit ctx : Context ): Unit = {
113
113
// todo: implementing #165 would simplify this logic
114
- val thisTransformer = ctx.phase.prev
115
- assert(thisTransformer .id <= ctx.explicitOuter.id, " can add $outer symbols only before ExplicitOuter" )
116
- assert(thisTransformer .isInstanceOf [DenotTransformer ], " adding outerAccessors requires being DenotTransformer" )
114
+ val prevPhase = ctx.phase.prev
115
+ assert(prevPhase .id <= ctx.explicitOuter.id, " can add $outer symbols only before ExplicitOuter" )
116
+ assert(prevPhase .isInstanceOf [DenotTransformer ], " adding outerAccessors requires being DenotTransformer" )
117
117
if (! hasOuter(cls)) {
118
- newOuterAccessors(cls).foreach(_.enteredAfter(thisTransformer .asInstanceOf [DenotTransformer ]))
118
+ newOuterAccessors(cls).foreach(_.enteredAfter(prevPhase .asInstanceOf [DenotTransformer ]))
119
119
}
120
120
}
121
121
You can’t perform that action at this time.
0 commit comments