Skip to content

Commit 211d46e

Browse files
committed
Cleanup of code for ExplicitOuter
1 parent 0d74e59 commit 211d46e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ object ExplicitOuter {
265265
if (fun.symbol.isConstructor) {
266266
val cls = fun.symbol.owner.asClass
267267
def outerArg(receiver: Tree): Tree = receiver match {
268-
case New(tpt) =>
269-
singleton(outerPrefix(tpt.tpe))
268+
case New(_) | Super(_, _) =>
269+
singleton(outerPrefix(receiver.tpe))
270270
case This(_) =>
271271
ref(outerParamAccessor(cls)) // will be rewired to outer argument of secondary constructor in phase Constructors
272272
case TypeApply(Select(r, nme.asInstanceOf_), args) =>

0 commit comments

Comments
 (0)