Skip to content

Commit

Permalink
Enable new implicit search mode that avoids loops from 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed May 27, 2024
1 parent 1f4a5de commit 345c1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Implicits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ trait Implicits:
SearchSuccess(tpd.ref(ref).withSpan(span.startPos), ref, 0)(ctx.typerState, ctx.gadt)
case _ =>
searchImplicit(ctx.implicits,
if sourceVersion.isAtLeast(SourceVersion.future) then SearchMode.New
if sourceVersion.isAtLeast(SourceVersion.`3.6`) then SearchMode.New
else if sourceVersion.isAtLeast(SourceVersion.`3.5`) then SearchMode.CompareErr
else if sourceVersion.isAtLeast(SourceVersion.`3.4`) then SearchMode.CompareWarn
else SearchMode.Old)
Expand Down

0 comments on commit 345c1e8

Please sign in to comment.