diff options
author | Kota Mizushima <mizukota@gmail.com> | 2012-01-16 23:20:07 +0900 |
---|---|---|
committer | Kota Mizushima <mizukota@gmail.com> | 2012-01-19 04:28:20 +0900 |
commit | 26afbf85bf17e3839f03cb9e2d981cdccdd2ee69 (patch) | |
tree | aa16ad6e7ac8e96e3df5c47c6a85c91b8aa6b864 /src | |
parent | 121bd609d82227446d1f638ecf5da9b604a77a13 (diff) | |
download | scala-26afbf85bf17e3839f03cb9e2d981cdccdd2ee69.tar.gz scala-26afbf85bf17e3839f03cb9e2d981cdccdd2ee69.tar.bz2 scala-26afbf85bf17e3839f03cb9e2d981cdccdd2ee69.zip |
Fixed a bug SI-5377 (https://issues.scala-lang.org/browse/SI-5377).
Added test cases for SI-5377.
Diffstat (limited to 'src')
-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 b6b4bfb96d..6d84b4276b 100644 --- a/src/library/scala/collection/SeqLike.scala +++ b/src/library/scala/collection/SeqLike.scala @@ -152,7 +152,7 @@ trait SeqLike[+A, +Repr] extends IterableLike[A, Repr] with GenSeqLike[A, Repr] if (!hasNext) Iterator.empty.next - val result = (self.newBuilder ++= elms).result + val result = (self.newBuilder ++= elms.toList).result var i = idxs.length - 2 while(i >= 0 && idxs(i) >= idxs(i+1)) i -= 1 |