File tree 2 files changed +1
-3
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1109,7 +1109,6 @@ trait Implicits { self: Typer =>
1109
1109
* a diverging search
1110
1110
*/
1111
1111
def tryImplicit (cand : Candidate , contextual : Boolean ): SearchResult =
1112
- // println(i"try $cand for $pt")
1113
1112
if (ctx.searchHistory.checkDivergence(cand, pt))
1114
1113
SearchFailure (new DivergingImplicit (cand.ref, pt.widenExpr, argument))
1115
1114
else {
@@ -1316,7 +1315,6 @@ trait Implicits { self: Typer =>
1316
1315
val eligible =
1317
1316
if (contextual) ctx.implicits.eligible(wildProto)
1318
1317
else implicitScope(wildProto).eligible
1319
- // println(i"eligible for $wildProto = $eligible%, %")
1320
1318
searchImplicits(eligible, contextual) match {
1321
1319
case result : SearchSuccess =>
1322
1320
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
10
10
11
11
def g2 [T ](x : T ): F [G [T ]] = x.f // error
12
12
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