summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-02-27 19:30:34 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-02-27 19:30:34 +0000
commit8bc588cbbe14f7c148e4b7a0dc4fbeef2740ea43 (patch)
tree226ebe2b91e8b9baf4a390f0df873305cdcd2dbc
parentd650015537c350b151755c90aea2e62d3722828d (diff)
downloadscala-8bc588cbbe14f7c148e4b7a0dc4fbeef2740ea43.tar.gz
scala-8bc588cbbe14f7c148e4b7a0dc4fbeef2740ea43.tar.bz2
scala-8bc588cbbe14f7c148e4b7a0dc4fbeef2740ea43.zip
Commented out the change until I can sort out w...
Commented out the change until I can sort out which parts of the compiler are violating the contract on Ordered.
-rw-r--r--src/library/scala/Ordered.scala10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/library/scala/Ordered.scala b/src/library/scala/Ordered.scala
index ed9c34315b..07d283dc3a 100644
--- a/src/library/scala/Ordered.scala
+++ b/src/library/scala/Ordered.scala
@@ -43,8 +43,9 @@ trait Ordered[A] {
* provide it yourself either when inheiriting or instantiating.
* Therefore, the default implementation will fail with an error to
* prevent you from forgetting to do so. */
- override def equals(other : Any) : Boolean =
- error("You must implement equals for Ordered yourself.")
+// Breaks the build FIX!!
+// override def equals(other : Any) : Boolean =
+// error("You must implement equals for Ordered yourself.")
/** It is important that the hashCode method for an instance of
* Ordered[A] be consistent with the compare method. However,
@@ -53,6 +54,7 @@ trait Ordered[A] {
* instance of Ordered[A] you must provide it yourself either when
* inheiriting or instantiating. Therefore, the default implementation
* will fail with an error to prevent you from forgetting to do so. */
- override def hashCode : Int =
- error("You must implement hashCode for Ordered yourself.")
+// Breaks the build FIX!!
+// override def hashCode : Int =
+// error("You must implement hashCode for Ordered yourself.")
}