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