We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21ee0d6 commit 3e7e073Copy full SHA for 3e7e073
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -113,7 +113,7 @@ object Implicits {
113
if (ctx.scala2Mode) tpw.derivesFrom(defn.FunctionClass(1))
114
else tpw.isRef(defn.FunctionClass(1))
115
val isConforms =
116
- tpw.derivesFrom(defn.Predef_Conforms) || ref.symbol == defn.Predef_conforms
+ tpw.derivesFrom(defn.Predef_Conforms) && ref.symbol != defn.Predef_conforms
117
!(isFunction || isConforms)
118
}
119
0 commit comments