Skip to content

Commit

Permalink
Add ambiguity test
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Jun 29, 2017
1 parent ed8c873 commit 69fab8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/src/test/scala/cats/tests/OrderTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@ class OrderTests extends FunSuite {
Invariant[Order]
Contravariant[Order]
}

// ambiguity test:
// the Ordering instance from the Order instance should be trumped
// by the one provided in the Ordering companion object
{
import cats.instances.order._
import cats.kernel.instances.string._
Ordering[String]
}
}

0 comments on commit 69fab8c

Please sign in to comment.