summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-09-04 13:57:20 +0000
committermichelou <michelou@epfl.ch>2007-09-04 13:57:20 +0000
commitc8740e98dc2b128f15c2ab30ae79c947e2eaefb4 (patch)
tree7cc21d8e23a3fb821f4bcb0ded5fb5ee864bd8e2
parent10bec64595b4c1d43af0612537f7bbd3e01b29ee (diff)
downloadscala-c8740e98dc2b128f15c2ab30ae79c947e2eaefb4.tar.gz
scala-c8740e98dc2b128f15c2ab30ae79c947e2eaefb4.tar.bz2
scala-c8740e98dc2b128f15c2ab30ae79c947e2eaefb4.zip
removed unchecked warning
-rw-r--r--src/library/scala/collection/Set.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/Set.scala b/src/library/scala/collection/Set.scala
index 44dd8d3b3a..f14ad566b0 100644
--- a/src/library/scala/collection/Set.scala
+++ b/src/library/scala/collection/Set.scala
@@ -104,7 +104,7 @@ trait Set[A] extends (A => Boolean) with Collection[A] {
* contain the same elements.
*/
override def equals(that: Any): Boolean = that match {
- case other: Set[A] =>
+ case other: Set[_] =>
this.size == other.size && subsetOf(other.asInstanceOf[Set[A]])
case _ =>
false