File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ def g1[T](x: T): F[G[T]] = x.f(using summon[Stuff]) // error
1010
1111def 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
You can’t perform that action at this time.
0 commit comments