Skip to content

Commit a7e88df

Browse files
committed
Address reviewer comments
1 parent c40302c commit a7e88df

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)