@@ -567,13 +567,14 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
567
567
def typedAssign (tree : untpd.Assign , pt : Type )(implicit ctx : Context ) = track(" typedAssign" ) {
568
568
tree.lhs match {
569
569
case lhs @ Apply (fn, args) =>
570
- typed(cpy .Apply (lhs) (untpd.Select (fn, nme.update), args :+ tree.rhs), pt)
570
+ typed(untpd .Apply (untpd.Select (fn, nme.update), args :+ tree.rhs), pt)
571
571
case untpd.TypedSplice (Apply (MaybePoly (Select (fn, app), targs), args)) if app == nme.apply =>
572
572
val rawUpdate : untpd.Tree = untpd.Select (untpd.TypedSplice (fn), nme.update)
573
573
val wrappedUpdate =
574
574
if (targs.isEmpty) rawUpdate
575
575
else untpd.TypeApply (rawUpdate, targs map (untpd.TypedSplice (_)))
576
- val appliedUpdate = cpy.Apply (fn)(wrappedUpdate, (args map (untpd.TypedSplice (_))) :+ tree.rhs)
576
+ val appliedUpdate =
577
+ untpd.Apply (wrappedUpdate, (args map (untpd.TypedSplice (_))) :+ tree.rhs)
577
578
typed(appliedUpdate, pt)
578
579
case lhs =>
579
580
val lhsCore = typedUnadapted(lhs, AssignProto )
@@ -604,7 +605,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
604
605
val setterType = ensureAccessible(setterTypeRaw, isSuperSelection(lhsCore), tree.pos)
605
606
val lhs2 = healNonvariant(
606
607
untpd.rename(lhsCore, setterName).withType(setterType), WildcardType )
607
- typedUnadapted(cpy .Apply (tree) (untpd.TypedSplice (lhs2), tree.rhs :: Nil ))
608
+ typedUnadapted(untpd .Apply (untpd.TypedSplice (lhs2), tree.rhs :: Nil ))
608
609
case _ =>
609
610
reassignmentToVal
610
611
}
0 commit comments