summaryrefslogtreecommitdiff
path: root/test/files/pos/orderedpoints.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-03-20 12:03:12 +0000
committerMartin Odersky <odersky@gmail.com>2006-03-20 12:03:12 +0000
commit5459db1226b86027e0817acb0a2f41e0c12b28ed (patch)
tree2662cea2c40283eadcdccb5d53d58f769a825601 /test/files/pos/orderedpoints.scala
parent4ddf81c21818dadb435a4a43b91ae69688d8bc1d (diff)
downloadscala-5459db1226b86027e0817acb0a2f41e0c12b28ed.tar.gz
scala-5459db1226b86027e0817acb0a2f41e0c12b28ed.tar.bz2
scala-5459db1226b86027e0817acb0a2f41e0c12b28ed.zip
1.
2. Changed method compareTo in class Ordered to compare. 3. Moved retsynch to pending 4. Fixed bug 550
Diffstat (limited to 'test/files/pos/orderedpoints.scala')
-rw-r--r--test/files/pos/orderedpoints.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/orderedpoints.scala b/test/files/pos/orderedpoints.scala
index 7e56a663fe..f972028bce 100644
--- a/test/files/pos/orderedpoints.scala
+++ b/test/files/pos/orderedpoints.scala
@@ -2,9 +2,9 @@ package test;
class Point1(x: int) extends Object with Ordered[Point1] {
val xCoord = x;
- def compareTo [b >: Point1 <% Ordered[b]](that: b): int = that match {
- case that1: Point1 => this.xCoord.compareTo(that1.xCoord)
- case _ => -that.compareTo(this)
+ def compare [b >: Point1 <% Ordered[b]](that: b): int = that match {
+ case that1: Point1 => this.xCoord.compare(that1.xCoord)
+ case _ => -that.compare(this)
}
}
class Point2(x: int, y: int) extends Point1(x) with Ordered[Point2] {}