diff options
Diffstat (limited to 'src/library/scala/Enumeration.scala')
-rw-r--r-- | src/library/scala/Enumeration.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/Enumeration.scala b/src/library/scala/Enumeration.scala index 5bd0ccf0f5..5d44c60413 100644 --- a/src/library/scala/Enumeration.scala +++ b/src/library/scala/Enumeration.scala @@ -116,9 +116,9 @@ abstract class Enumeration(initial: Int, names: String*) { abstract class Value extends Ordered[Value] { def id: Int; - override def compareTo[S >: Value <% Ordered[S]](that: S): Int = that match { + override def compare[S >: Value <% Ordered[S]](that: S): Int = that match { case that1: Value => id - that1.id - case _ => -(that compareTo this) + case _ => -(that compare this) } } |