Skip to content

Commit 2584cf6

Browse files
committed
Remove unnecessary check for Predef.conforms
1 parent dda91bb commit 2584cf6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

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

0 commit comments

Comments
 (0)