Skip to content

Commit 5aebaac

Browse files
committed
Test case closes SI-4273.
1 parent 278a225 commit 5aebaac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/files/pos/t4273.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)