Skip to content

Commit

Permalink
Remove SAM in favor of being explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Jul 1, 2017
1 parent 87c9bda commit 3fe1cad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/src/test/scala/cats/tests/OrderTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit 3fe1cad

Please sign in to comment.