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 40667a6 commit 3188b43Copy full SHA for 3188b43
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -249,7 +249,9 @@ object Implicits {
249
250
val extensionCandidates =
251
if considerExtension then
252
- companionRefs.toList.flatMap(matchingCandidate(_, extensionOnly = true))
+ companionRefs.toList
253
+ .filterConserve(!_.symbol.isOneOf(GivenOrImplicit)) // implicit objects are already in `refs`
254
+ .flatMap(matchingCandidate(_, extensionOnly = true))
255
else
256
Nil
257
val implicitCandidates =
0 commit comments