blob: ed2c6277098d2b163c32789f16c7ed3adbbb7abf (
plain) (
tree)
|
|
class A {
implicit def compareComparables[T](x: T)(implicit ord: Ordering[T]) = new ord.Ops(x)
class Bippy
implicit val bippyOrdering = new Ordering[Bippy] { def compare(x: Bippy, y: Bippy) = util.Random.nextInt }
(new Bippy) < (new Bippy)
}
|