summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-10-11 15:36:37 +0000
committermichelou <michelou@epfl.ch>2007-10-11 15:36:37 +0000
commit825e4447d6459078176fba21840f58c5c5b6dd54 (patch)
treeecb8283a3f51fd1949d0095721ea738e12df652f
parente2565c03562743d04f2f2c3557f5342ea5b76fbe (diff)
downloadscala-825e4447d6459078176fba21840f58c5c5b6dd54.tar.gz
scala-825e4447d6459078176fba21840f58c5c5b6dd54.tar.bz2
scala-825e4447d6459078176fba21840f58c5c5b6dd54.zip
oups! added missing override modifier
-rw-r--r--src/library/scala/Iterable.scala2
-rw-r--r--src/library/scala/List.scala3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/library/scala/Iterable.scala b/src/library/scala/Iterable.scala
index e00d41c7c8..0e6fb3a277 100644
--- a/src/library/scala/Iterable.scala
+++ b/src/library/scala/Iterable.scala
@@ -195,7 +195,7 @@ trait Iterable[+A] {
* The relative order of the elements in the resulting iterables
* is the same as in the original iterable.
*/
- def partition[T](p: A => Boolean): (Iterable[A], Iterable[A]) = {
+ def partition(p: A => Boolean): (Iterable[A], Iterable[A]) = {
val matched = new ArrayBuffer[A]
val failed = new ArrayBuffer[A]
val elems = elements
diff --git a/src/library/scala/List.scala b/src/library/scala/List.scala
index e9edeafd7c..38028b7385 100644
--- a/src/library/scala/List.scala
+++ b/src/library/scala/List.scala
@@ -401,7 +401,6 @@ sealed abstract class List[+A] extends Seq[A] {
*/
def head: A
-
/** returns length - l, without calling length
*/
override def lengthCompare(l: Int) = {
@@ -787,7 +786,7 @@ sealed abstract class List[+A] extends Seq[A] {
* The relative order of the elements in the sub-lists is the
* same as in the original list.
*/
- def partition(p: A => Boolean): (List[A], List[A]) = {
+ override def partition(p: A => Boolean): (List[A], List[A]) = {
val btrue = new ListBuffer[A]
val bfalse = new ListBuffer[A]
var these = this