Skip to content

Commit c8d7be1

Browse files
committed
Address review comments
1 parent 4aae35c commit c8d7be1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,6 @@ trait Implicits { self: Typer =>
11081108
* a diverging search
11091109
*/
11101110
def tryImplicit(cand: Candidate, contextual: Boolean): SearchResult =
1111-
//println(i"try $cand for $pt")
11121111
if (ctx.searchHistory.checkDivergence(cand, pt))
11131112
SearchFailure(new DivergingImplicit(cand.ref, pt.widenExpr, argument))
11141113
else {
@@ -1315,7 +1314,6 @@ trait Implicits { self: Typer =>
13151314
val eligible =
13161315
if (contextual) ctx.implicits.eligible(wildProto)
13171316
else implicitScope(wildProto).eligible
1318-
//println(i"eligible for $wildProto = $eligible%, %")
13191317
searchImplicits(eligible, contextual) match {
13201318
case result: SearchSuccess =>
13211319
result

tests/neg/i6779.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ def g1[T](x: T): F[G[T]] = x.f(using summon[Stuff]) // error
1010

1111
def g2[T](x: T): F[G[T]] = x.f // error
1212

13-
def g3[T](x: T): F[G[T]] = f(x)(using summon[Stuff]) // error
13+
def g3[T](x: T): F[G[T]] = extension_f(x)(using summon[Stuff]) // error

0 commit comments

Comments
 (0)