Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jul 3, 2020
1 parent c9f0b37 commit 6de51a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions compiler/src/dotty/tools/dotc/typer/Implicits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,6 @@ trait Implicits { self: Typer =>
* a diverging search
*/
def tryImplicit(cand: Candidate, contextual: Boolean): SearchResult =
//println(i"try $cand for $pt")
if (ctx.searchHistory.checkDivergence(cand, pt))
SearchFailure(new DivergingImplicit(cand.ref, pt.widenExpr, argument))
else {
Expand Down Expand Up @@ -1316,7 +1315,6 @@ trait Implicits { self: Typer =>
val eligible =
if (contextual) ctx.implicits.eligible(wildProto)
else implicitScope(wildProto).eligible
//println(i"eligible for $wildProto = $eligible%, %")
searchImplicits(eligible, contextual) match {
case result: SearchSuccess =>
result
Expand Down
2 changes: 1 addition & 1 deletion tests/neg/i6779.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def g1[T](x: T): F[G[T]] = x.f(using summon[Stuff]) // error

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

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

0 comments on commit 6de51a3

Please sign in to comment.