diff options
Diffstat (limited to 'compiler/src')
-rw-r--r-- | compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala b/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala index 16010d439..1eb12e9de 100644 --- a/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala +++ b/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala @@ -82,11 +82,11 @@ class ExplicitOuter extends MiniPhaseTransform with InfoTransformer { thisTransf impl.existsSubTree(referencesOuter(cls, _))) ensureOuterAccessors(cls) - val hasOuterFlag = hasOuter(cls) - if (hasOuterFlag || cls.mixins.exists(needsOuterIfReferenced)) { + val clsHasOuter = hasOuter(cls) + if (clsHasOuter || cls.mixins.exists(needsOuterIfReferenced)) { val newDefs = new mutable.ListBuffer[Tree] - if (hasOuterFlag) { + if (clsHasOuter) { if (isTrait) newDefs += DefDef(outerAccessor(cls).asTerm, EmptyTree) else { |