We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4745d99 commit 24856dfCopy full SHA for 24856df
compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala
@@ -269,11 +269,12 @@ trait ImportSuggestions:
269
val top = new Array[TermRef](n)
270
var filled = 0
271
val rest = new mutable.ListBuffer[TermRef]
272
+ val noImplicitsCtx = ctx.retractMode(Mode.ImplicitsEnabled)
273
for ref <- refs do
274
var i = 0
275
var diff = 0
276
while i < filled && diff == 0 do
- diff = compare(ref, top(i))(using ctx.retractMode(Mode.ImplicitsEnabled))
277
+ diff = compare(ref, top(i))(using noImplicitsCtx)
278
if diff > 0 then
279
rest += top(i)
280
top(i) = ref
0 commit comments