summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-10-26 22:50:56 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-10-26 22:50:56 +0000
commitf9551d0c2f92ded7ef574121d89cda742e407f2d (patch)
treea2bf2da9e6e12bfedd258f10a270010e71a4362e /src/library
parent4b8fe44351a26d3cc3d82f36359de4c125a71edb (diff)
downloadscala-f9551d0c2f92ded7ef574121d89cda742e407f2d.tar.gz
scala-f9551d0c2f92ded7ef574121d89cda742e407f2d.tar.bz2
scala-f9551d0c2f92ded7ef574121d89cda742e407f2d.zip
Fix and test for #2214.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Enumeration.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/Enumeration.scala b/src/library/scala/Enumeration.scala
index 7fa9180a36..f4ed95489b 100644
--- a/src/library/scala/Enumeration.scala
+++ b/src/library/scala/Enumeration.scala
@@ -155,13 +155,13 @@ abstract class Enumeration(initial: Int, names: String*) {
/** The type of the enumerated values. */
@serializable
@SerialVersionUID(7091335633555234129L)
- abstract class Value extends Ordered[Value] {
+ abstract class Value extends Ordered[Enumeration#Value] {
/** the id and bit location of this enumeration value */
def id: Int
- override def compare(that: Value): Int = this.id - that.id
+ override def compare(that: Enumeration#Value): Int = this.id - that.id
override def equals(other: Any): Boolean =
other match {
- case that: Value => compare(that) == 0
+ case that: Enumeration#Value => compare(that) == 0
case _ => false
}
override def hashCode: Int = id.hashCode