diff options
author | Rex Kerr <ichoran@gmail.com> | 2015-02-22 15:54:29 -0800 |
---|---|---|
committer | Rex Kerr <ichoran@gmail.com> | 2015-02-22 16:02:29 -0800 |
commit | 8cc66b0a8fb6c8c46c306a672a66cf5af431f733 (patch) | |
tree | e72bc1a6590a504aadb149c370ab9fb5a2bea094 /src/library | |
parent | 3a32ae3651f69237bde32598674bc135ad9e4064 (diff) | |
download | scala-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/library')
-rw-r--r-- | src/library/scala/collection/SeqViewLike.scala | 2 |
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)) } |