@@ -840,7 +840,7 @@ class Typer extends Namer
840
840
case fn @ Apply (fn1, args) =>
841
841
val result = untpd.cpy.Apply (fn)(toSetter(fn1), args.map(untpd.TypedSplice (_)))
842
842
fn1 match
843
- case Apply (_, _) =>
843
+ case Apply (_, _) => // current apply is to implicit arguments
844
844
result.setApplyKind(ApplyKind .Using )
845
845
// Note that we cannot copy the apply kind of `fn` since `fn` is a typed
846
846
// tree and applyKinds are not preserved for those.
@@ -852,9 +852,10 @@ class Typer extends Namer
852
852
if setter.isEmpty then reassignmentToVal
853
853
else tryEither {
854
854
val assign = untpd.Apply (setter, tree.rhs :: Nil )
855
- // println(i"converted $tree / $lhsCore --> $setter / $assign")
856
855
typed(assign, IgnoredProto (pt))
857
- } { (_, _) => reassignmentToVal }
856
+ } {
857
+ (_, _) => reassignmentToVal
858
+ }
858
859
case _ => lhsCore.tpe match {
859
860
case ref : TermRef =>
860
861
val lhsVal = lhsCore.denot.suchThat(! _.is(Method ))
@@ -870,7 +871,6 @@ class Typer extends Namer
870
871
val pre = ref.prefix
871
872
val setterName = ref.name.setterName
872
873
val setter = pre.member(setterName)
873
- // println(i"assign $ref")
874
874
lhsCore match {
875
875
case lhsCore : RefTree if setter.exists =>
876
876
val setterTypeRaw = pre.select(setterName, setter)
0 commit comments