diff --git a/core/src/main/scala/simulacrum/typeclass.scala b/core/src/main/scala/simulacrum/typeclass.scala index 0060710..a23be7b 100644 --- a/core/src/main/scala/simulacrum/typeclass.scala +++ b/core/src/main/scala/simulacrum/typeclass.scala @@ -199,7 +199,7 @@ class TypeClassMacros(val c: Context) { if (arg equalsStructure Ident(simpleArg)) { (withRewrittenFirst, true) } else { - val typeEqualityType = tq"_root_.scala.Predef.=:=[${liftedTypeArg.name}, $arg]" + val typeEqualityType = tq"_root_.scala.Predef.<:<[${liftedTypeArg.name}, $arg]" val equalityEvidence = ValDef(Modifiers(Flag.IMPLICIT), TermName(c.freshName("ev")), typeEqualityType, EmptyTree) val updatedParamss = { if (withRewrittenFirst.nonEmpty && withRewrittenFirst.last.head.mods.hasFlag(Flag.IMPLICIT))