Skip to content

Commit 95c9dfb

Browse files
authored
Put check for Predef.conforms back
1 parent 2584cf6 commit 95c9dfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,9 @@ trait Implicits:
962962
.map(_.underlyingRef)
963963
.distinctBy(_.denot)
964964
.filter { imp =>
965-
!isImplicitDefConversion(imp.underlying) && canBeConverted(imp, fail.expectedType)
965+
!isImplicitDefConversion(imp.underlying)
966+
&& imp.symbol != defn.Predef_conforms
967+
&& canBeConverted(imp, fail.expectedType)
966968
}
967969
else
968970
Nil

0 commit comments

Comments
 (0)