Skip to content

Commit 345c1e8

Browse files
committed
Enable new implicit search mode that avoids loops from 3.6
1 parent 1f4a5de commit 345c1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ trait Implicits:
17181718
SearchSuccess(tpd.ref(ref).withSpan(span.startPos), ref, 0)(ctx.typerState, ctx.gadt)
17191719
case _ =>
17201720
searchImplicit(ctx.implicits,
1721-
if sourceVersion.isAtLeast(SourceVersion.future) then SearchMode.New
1721+
if sourceVersion.isAtLeast(SourceVersion.`3.6`) then SearchMode.New
17221722
else if sourceVersion.isAtLeast(SourceVersion.`3.5`) then SearchMode.CompareErr
17231723
else if sourceVersion.isAtLeast(SourceVersion.`3.4`) then SearchMode.CompareWarn
17241724
else SearchMode.Old)

0 commit comments

Comments
 (0)