We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278a225 commit 5aebaacCopy full SHA for 5aebaac
test/files/pos/t4273.scala
@@ -0,0 +1,8 @@
1
+class A {
2
+ implicit def compareComparables[T](x: T)(implicit ord: Ordering[T]) = new ord.Ops(x)
3
+
4
+ class Bippy
5
+ implicit val bippyOrdering = new Ordering[Bippy] { def compare(x: Bippy, y: Bippy) = util.Random.nextInt }
6
7
+ (new Bippy) < (new Bippy)
8
+}
0 commit comments