We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d74e59 commit 211d46eCopy full SHA for 211d46e
src/dotty/tools/dotc/transform/ExplicitOuter.scala
@@ -265,8 +265,8 @@ object ExplicitOuter {
265
if (fun.symbol.isConstructor) {
266
val cls = fun.symbol.owner.asClass
267
def outerArg(receiver: Tree): Tree = receiver match {
268
- case New(tpt) =>
269
- singleton(outerPrefix(tpt.tpe))
+ case New(_) | Super(_, _) =>
+ singleton(outerPrefix(receiver.tpe))
270
case This(_) =>
271
ref(outerParamAccessor(cls)) // will be rewired to outer argument of secondary constructor in phase Constructors
272
case TypeApply(Select(r, nme.asInstanceOf_), args) =>
0 commit comments