diff options
Diffstat (limited to 'test/files/pos/viewtest3.scala')
-rw-r--r-- | test/files/pos/viewtest3.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/viewtest3.scala b/test/files/pos/viewtest3.scala index 89e32e48a8..68277a7a47 100644 --- a/test/files/pos/viewtest3.scala +++ b/test/files/pos/viewtest3.scala @@ -20,9 +20,9 @@ class Node[a <% Ordered[a]](elem: a, l: Tree[a], r: Tree[a]) extends Tree[a] { } case class Str(elem: String) extends Ordered[Str] { - def compareTo[b >: Str <% Ordered[b]](that: b): int = that match { - case that1: Str => this.elem compareTo that1.elem - case _ => -(that compareTo this) + def compare[b >: Str <% Ordered[b]](that: b): int = that match { + case that1: Str => this.elem compare that1.elem + case _ => -(that compare this) } } |