@@ -699,18 +699,18 @@ trait Implicits { self: Typer =>
699699 if (ctx.inInlineMethod || enclosingInlineds.nonEmpty) ref(defn.TastyReflection_macroContext )
700700 else EmptyTree
701701
702- /** If `formal` is of the form Eq [T, U], try to synthesize an
703- * `Eq.eqAny [T, U]` as solution.
702+ /** If `formal` is of the form Eql [T, U], try to synthesize an
703+ * `Eql.eqlAny [T, U]` as solution.
704704 */
705705 def synthesizedEq (formal : Type )(implicit ctx : Context ): Tree = {
706706
707707 /** Is there an `Eql[T, T]` instance, assuming -strictEquality? */
708708 def hasEq (tp : Type )(implicit ctx : Context ): Boolean = {
709- val inst = inferImplicitArg(defn.EqType .appliedTo(tp, tp), span)
709+ val inst = inferImplicitArg(defn.EqlType .appliedTo(tp, tp), span)
710710 ! inst.isEmpty && ! inst.tpe.isError
711711 }
712712
713- /** Can we assume the eqAny instance for `tp1`, `tp2`?
713+ /** Can we assume the eqlAny instance for `tp1`, `tp2`?
714714 * This is the case if assumedCanEqual(tp1, tp2), or
715715 * one of `tp1`, `tp2` has a reflexive `Eql` instance.
716716 */
@@ -756,7 +756,7 @@ trait Implicits { self: Typer =>
756756 ||
757757 ! strictEquality &&
758758 ctx.test(implicit ctx => validEqAnyArgs(arg1, arg2)))
759- ref(defn.Eq_eqAny ).appliedToTypes(args).withSpan(span)
759+ ref(defn.Eql_eqlAny ).appliedToTypes(args).withSpan(span)
760760 else EmptyTree
761761 case _ =>
762762 EmptyTree
@@ -817,7 +817,7 @@ trait Implicits { self: Typer =>
817817 trySpecialCase(defn.QuotedTypeClass , synthesizedTypeTag,
818818 trySpecialCase(defn.GenericClass , synthesizedGeneric,
819819 trySpecialCase(defn.TastyReflectionClass , synthesizedTastyContext,
820- trySpecialCase(defn.EqClass , synthesizedEq,
820+ trySpecialCase(defn.EqlClass , synthesizedEq,
821821 trySpecialCase(defn.ValueOfClass , synthesizedValueOf, failed))))))
822822 }
823823 }
@@ -963,8 +963,8 @@ trait Implicits { self: Typer =>
963963 /** Check that equality tests between types `ltp` and `rtp` make sense */
964964 def checkCanEqual (ltp : Type , rtp : Type , span : Span )(implicit ctx : Context ): Unit =
965965 if (! ctx.isAfterTyper && ! assumedCanEqual(ltp, rtp)) {
966- val res = implicitArgTree(defn.EqType .appliedTo(ltp, rtp), span)
967- implicits.println(i " Eq witness found for $ltp / $rtp: $res: ${res.tpe}" )
966+ val res = implicitArgTree(defn.EqlType .appliedTo(ltp, rtp), span)
967+ implicits.println(i " Eql witness found for $ltp / $rtp: $res: ${res.tpe}" )
968968 }
969969
970970 /** Find an implicit parameter or conversion.
@@ -1032,7 +1032,7 @@ trait Implicits { self: Typer =>
10321032 if (argument.isEmpty) f(resultType) else ViewProto (f(argument.tpe.widen), f(resultType))
10331033 // Not clear whether we need to drop the `.widen` here. All tests pass with it in place, though.
10341034
1035- private def isCoherent = pt.isRef(defn.EqClass )
1035+ private def isCoherent = pt.isRef(defn.EqlClass )
10361036
10371037 private val cmpContext = nestedContext()
10381038 private val cmpCandidates = (c1 : Candidate , c2 : Candidate ) => compare(c1.ref, c2.ref, c1.level, c2.level)(cmpContext)
0 commit comments