diff --git a/tests/src/test/scala/cats/tests/OrderTests.scala b/tests/src/test/scala/cats/tests/OrderTests.scala index 1b068796b2..324c4a089e 100644 --- a/tests/src/test/scala/cats/tests/OrderTests.scala +++ b/tests/src/test/scala/cats/tests/OrderTests.scala @@ -25,7 +25,9 @@ class OrderTests extends FunSuite { import cats.instances.all._ Ordering[String] class C - implicit val ording: Ordering[C] = (_: C, _: C) => 0 + implicit val ording: Ordering[C] = new Ordering[C] { + def compare(x: C, y: C) = 0 + } implicit val ord: Order[C] = Order.allEqual Ordering[C] }