Skip to content

Commit 7b64780

Browse files
committed
Drop debug printlns
1 parent bf39cca commit 7b64780

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ class Typer extends Namer
840840
case fn @ Apply(fn1, args) =>
841841
val result = untpd.cpy.Apply(fn)(toSetter(fn1), args.map(untpd.TypedSplice(_)))
842842
fn1 match
843-
case Apply(_, _) =>
843+
case Apply(_, _) => // current apply is to implicit arguments
844844
result.setApplyKind(ApplyKind.Using)
845845
// Note that we cannot copy the apply kind of `fn` since `fn` is a typed
846846
// tree and applyKinds are not preserved for those.
@@ -852,9 +852,10 @@ class Typer extends Namer
852852
if setter.isEmpty then reassignmentToVal
853853
else tryEither {
854854
val assign = untpd.Apply(setter, tree.rhs :: Nil)
855-
//println(i"converted $tree / $lhsCore --> $setter / $assign")
856855
typed(assign, IgnoredProto(pt))
857-
} { (_, _) => reassignmentToVal }
856+
} {
857+
(_, _) => reassignmentToVal
858+
}
858859
case _ => lhsCore.tpe match {
859860
case ref: TermRef =>
860861
val lhsVal = lhsCore.denot.suchThat(!_.is(Method))
@@ -870,7 +871,6 @@ class Typer extends Namer
870871
val pre = ref.prefix
871872
val setterName = ref.name.setterName
872873
val setter = pre.member(setterName)
873-
//println(i"assign $ref")
874874
lhsCore match {
875875
case lhsCore: RefTree if setter.exists =>
876876
val setterTypeRaw = pre.select(setterName, setter)

0 commit comments

Comments
 (0)