From 8bc588cbbe14f7c148e4b7a0dc4fbeef2740ea43 Mon Sep 17 00:00:00 2001 From: Geoffrey Washburn Date: Wed, 27 Feb 2008 19:30:34 +0000 Subject: 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. --- src/library/scala/Ordered.scala | 10 ++++++---- 1 file 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.") } -- cgit v1.2.3