diff options
author | Paul Phillips <paulp@improving.org> | 2010-05-20 13:26:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-05-20 13:26:59 +0000 |
commit | b96804031a11f36ae00acc3020a7ed338b926abe (patch) | |
tree | 70e23a8fafb44532d546c6fe44f563484d42e359 /src/library | |
parent | 50bf167d084b78e4c0f4b906ad0587cd29b533dc (diff) | |
download | scala-b96804031a11f36ae00acc3020a7ed338b926abe.tar.gz scala-b96804031a11f36ae00acc3020a7ed338b926abe.tar.bz2 scala-b96804031a11f36ae00acc3020a7ed338b926abe.zip |
Bug in lastIndexOfSeq. Closes #3455, no review.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/SeqLike.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/SeqLike.scala b/src/library/scala/collection/SeqLike.scala index 26d113ed85..5f75169f3c 100644 --- a/src/library/scala/collection/SeqLike.scala +++ b/src/library/scala/collection/SeqLike.scala @@ -508,7 +508,7 @@ trait SeqLike[+A, +Repr] extends IterableLike[A, Repr] { self => * @return the last index such that the elements of this $coll starting a this index * match the elements of sequence `that`, or `-1` of no such subsequence exists. */ - def lastIndexOfSlice[B >: A](that: Seq[B]): Int = lastIndexOfSlice(that, that.length) + def lastIndexOfSlice[B >: A](that: Seq[B]): Int = lastIndexOfSlice(that, length) /** Finds last index before or at a given end index where this $coll contains a given sequence as a slice. * @param that the sequence to test |