aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t4273.scala
blob: 8c4cbbbafce1ee207e8e9269bc0f0e41634a80d6 (plain) (blame)
1
2
3
4
5
6
7
8
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)
}