diff options
author | michelou <michelou@epfl.ch> | 2007-10-11 15:36:37 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-10-11 15:36:37 +0000 |
commit | 825e4447d6459078176fba21840f58c5c5b6dd54 (patch) | |
tree | ecb8283a3f51fd1949d0095721ea738e12df652f /src | |
parent | e2565c03562743d04f2f2c3557f5342ea5b76fbe (diff) | |
download | scala-825e4447d6459078176fba21840f58c5c5b6dd54.tar.gz scala-825e4447d6459078176fba21840f58c5c5b6dd54.tar.bz2 scala-825e4447d6459078176fba21840f58c5c5b6dd54.zip |
oups! added missing override modifier
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/Iterable.scala | 2 | ||||
-rw-r--r-- | src/library/scala/List.scala | 3 |
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 |