diff options
author | Paul Phillips <paulp@improving.org> | 2011-03-19 20:29:02 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-03-19 20:29:02 +0000 |
commit | fef8e61cb3713bb6334789ef785760388c9d2826 (patch) | |
tree | 1f139dfa4f5aa3da94bb3fb1bba8972d4affec38 | |
parent | 9b68c3c21395a0b5cf32fddbfd785fb7b10d242e (diff) | |
download | scala-fef8e61cb3713bb6334789ef785760388c9d2826.tar.gz scala-fef8e61cb3713bb6334789ef785760388c9d2826.tar.bz2 scala-fef8e61cb3713bb6334789ef785760388c9d2826.zip |
Oh yeah, now I remember why I started with leng...
Oh yeah, now I remember why I started with length overrides. Fix for
soon to be failing test, no review.
-rw-r--r-- | src/library/scala/collection/mutable/IndexedSeqView.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/collection/mutable/IndexedSeqView.scala b/src/library/scala/collection/mutable/IndexedSeqView.scala index 84b87490fd..12b0229ae1 100644 --- a/src/library/scala/collection/mutable/IndexedSeqView.scala +++ b/src/library/scala/collection/mutable/IndexedSeqView.scala @@ -43,6 +43,7 @@ self => // pre: until <= self.length trait Sliced extends super.Sliced with Transformed[A] { + override def length = endpoints.width def update(idx: Int, elem: A) = if (idx + from < until) self.update(idx + from, elem) else throw new IndexOutOfBoundsException(idx.toString) |