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 fff6f48 commit 44031b8Copy full SHA for 44031b8
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -569,9 +569,9 @@ class Semantic {
569
}
570
superCall(tref, ctor, tree)
571
572
- case ref: RefTree =>
573
- val tref = ref.tpe.asInstanceOf[TypeRef]
574
- superCall(tref, tref.classSymbol.primaryConstructor, ref)
+ case _ =>
+ val tref = typeRefOf(parent.tpe)
+ superCall(tref, tref.classSymbol.primaryConstructor, parent)
575
576
577
// see spec 5.1 about "Template Evaluation".
0 commit comments