diff options
author | Paul Phillips <paulp@improving.org> | 2011-03-12 01:59:46 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-03-12 01:59:46 +0000 |
commit | e86934018bf3078a1a9751c16b95621a04575707 (patch) | |
tree | 37120b7d56e98febc33f3aac3590796e77cc55d0 /src/library/scala/collection/SeqViewLike.scala | |
parent | 0254234328ab8a438aac649234bd5e12614f8ff9 (diff) | |
download | scala-e86934018bf3078a1a9751c16b95621a04575707.tar.gz scala-e86934018bf3078a1a9751c16b95621a04575707.tar.bz2 scala-e86934018bf3078a1a9751c16b95621a04575707.zip |
Fixed up the regression I slipped in with slice.
for pointing me toward the problem. No review.
Diffstat (limited to 'src/library/scala/collection/SeqViewLike.scala')
-rw-r--r-- | src/library/scala/collection/SeqViewLike.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/library/scala/collection/SeqViewLike.scala b/src/library/scala/collection/SeqViewLike.scala index f5a61ec350..2bd8e29b65 100644 --- a/src/library/scala/collection/SeqViewLike.scala +++ b/src/library/scala/collection/SeqViewLike.scala @@ -194,7 +194,11 @@ trait SeqViewLike[+A, val thatElem = _thatElem } with ZippedAll[A1, B] protected def newReversed: Transformed[A] = new Reversed { } - protected def newPatched[B >: A](_from: Int, _patch: Seq[B], _replaced: Int): Transformed[B] = new { val from = _from; val patch = _patch; val replaced = _replaced } with Patched[B] + protected def newPatched[B >: A](_from: Int, _patch: Seq[B], _replaced: Int): Transformed[B] = new { + val from = _from + val patch = _patch + val replaced = _replaced + } with Patched[B] protected def newPrepended[B >: A](elem: B): Transformed[B] = new { protected[this] val fst = elem } with Prepended[B] override def reverse: This = newReversed.asInstanceOf[This] |