summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRex Kerr <ichoran@gmail.com>2015-02-22 15:54:29 -0800
committerRex Kerr <ichoran@gmail.com>2015-02-22 16:02:29 -0800
commit8cc66b0a8fb6c8c46c306a672a66cf5af431f733 (patch)
treee72bc1a6590a504aadb149c370ab9fb5a2bea094 /src
parent3a32ae3651f69237bde32598674bc135ad9e4064 (diff)
downloadscala-8cc66b0a8fb6c8c46c306a672a66cf5af431f733.tar.gz
scala-8cc66b0a8fb6c8c46c306a672a66cf5af431f733.tar.bz2
scala-8cc66b0a8fb6c8c46c306a672a66cf5af431f733.zip
SI-9172 FlatMapped views throw exception on filter
Errant `self.length` changed to `length`. No tests; found and tested by collections-laws.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/SeqViewLike.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/SeqViewLike.scala b/src/library/scala/collection/SeqViewLike.scala
index 59e0e73e89..3473c8aff1 100644
--- a/src/library/scala/collection/SeqViewLike.scala
+++ b/src/library/scala/collection/SeqViewLike.scala
@@ -83,7 +83,7 @@ trait SeqViewLike[+A,
}
def length = index(self.length)
def apply(idx: Int) = {
- if (idx < 0 || idx >= self.length) throw new IndexOutOfBoundsException(idx.toString)
+ if (idx < 0 || idx >= length) throw new IndexOutOfBoundsException(idx.toString)
val row = findRow(idx, 0, self.length - 1)
mapping(self(row)).seq.toSeq(idx - index(row))
}