Skip to content

Commit 86f954c

Browse files
committed
Fix missing implementation class forward
A transformFollowingDeep was missing, so LinkScala2ImplClasses never got to see the call.
1 parent 9220844 commit 86f954c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,7 @@ class Mixin extends MiniPhaseTransform with SymTransformer { thisTransform =>
148148
if (baseCls.is(NoInitsTrait) || defn.PhantomClasses.contains(baseCls)) Nil
149149
else {
150150
//println(i"synth super call ${baseCls.primaryConstructor}: ${baseCls.primaryConstructor.info}")
151-
superRef(baseCls.primaryConstructor).appliedToNone :: Nil
152-
/* constr.tpe.widen match {
153-
case tpe: PolyType =>
154-
val targs = cls.thisType.baseTypeWithArgs(baseCls).argTypes
155-
constr = constr.appliedToTypes(targs)
156-
case _ =>
157-
}
158-
constr.ensureApplied :: Nil
159-
*/
151+
transformFollowingDeep(superRef(baseCls.primaryConstructor).appliedToNone) :: Nil
160152
}
161153
}
162154

0 commit comments

Comments
 (0)