File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ object ExplicitOuter {
276276 if (tpe.prefix eq NoPrefix ) cls.owner.enclosingClass.thisType
277277 else tpe.prefix
278278 case _ =>
279+ // Need to be careful to dealias before erasure, otherwise we lose prefixes.
279280 outerPrefix(tpe.underlying(ctx.withPhaseNoLater(ctx.erasurePhase)))
280281 }
281282 case tpe : TypeProxy =>
@@ -339,7 +340,6 @@ object ExplicitOuter {
339340 val cls = fun.symbol.owner.asClass
340341 def outerArg (receiver : Tree ): Tree = receiver match {
341342 case New (_) | Super (_, _) =>
342- println(i " outerarg: ${receiver.tpe} --> ${outerPrefix(receiver.tpe)} at ${ctx.phase}" )
343343 singleton(fixThis(outerPrefix(receiver.tpe)))
344344 case This (_) =>
345345 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