Skip to content

Commit 3e7e073

Browse files
committed
Fix condition logic
I introduced an error in the refactoring two commits ago.
1 parent 21ee0d6 commit 3e7e073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/src/dotty/tools/dotc/typer/Implicits.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ object Implicits {
113113
if (ctx.scala2Mode) tpw.derivesFrom(defn.FunctionClass(1))
114114
else tpw.isRef(defn.FunctionClass(1))
115115
val isConforms =
116-
tpw.derivesFrom(defn.Predef_Conforms) || ref.symbol == defn.Predef_conforms
116+
tpw.derivesFrom(defn.Predef_Conforms) && ref.symbol != defn.Predef_conforms
117117
!(isFunction || isConforms)
118118
}
119119

0 commit comments

Comments
 (0)