File tree 2 files changed +1
-1
lines changed
compiler/src/dotty/tools/dotc/transform 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ object ExplicitOuter {
276
276
if (tpe.prefix eq NoPrefix ) cls.owner.enclosingClass.thisType
277
277
else tpe.prefix
278
278
case _ =>
279
+ // Need to be careful to dealias before erasure, otherwise we lose prefixes.
279
280
outerPrefix(tpe.underlying(ctx.withPhaseNoLater(ctx.erasurePhase)))
280
281
}
281
282
case tpe : TypeProxy =>
@@ -339,7 +340,6 @@ object ExplicitOuter {
339
340
val cls = fun.symbol.owner.asClass
340
341
def outerArg (receiver : Tree ): Tree = receiver match {
341
342
case New (_) | Super (_, _) =>
342
- println(i " outerarg: ${receiver.tpe} --> ${outerPrefix(receiver.tpe)} at ${ctx.phase}" )
343
343
singleton(fixThis(outerPrefix(receiver.tpe)))
344
344
case This (_) =>
345
345
ref(outerParamAccessor(cls)) // will be rewired to outer argument of secondary constructor in phase Constructors
File renamed without changes.
You can’t perform that action at this time.
0 commit comments