aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t4273.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t4273.scala')
-rw-r--r--tests/pending/pos/t4273.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pending/pos/t4273.scala b/tests/pending/pos/t4273.scala
new file mode 100644
index 000000000..8c4cbbbaf
--- /dev/null
+++ b/tests/pending/pos/t4273.scala
@@ -0,0 +1,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)
+}