summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-09-22 21:06:17 +0000
committerPaul Phillips <paulp@improving.org>2010-09-22 21:06:17 +0000
commit1b1d48353bc07aa3885678c7c74c656e69010448 (patch)
tree710a7805bd6be1e678fe6a0acb018aec3aa6ad01 /src
parent04159cb985dfc405f503f9a4532b4efa393ed6e2 (diff)
downloadscala-1b1d48353bc07aa3885678c7c74c656e69010448.tar.gz
scala-1b1d48353bc07aa3885678c7c74c656e69010448.tar.bz2
scala-1b1d48353bc07aa3885678c7c74c656e69010448.zip
Added an override to immutable.IndexedSeq#toInd...
Added an override to immutable.IndexedSeq#toIndexedSeq which returns itself. Closes #3732, no review.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/immutable/IndexedSeq.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/collection/immutable/IndexedSeq.scala b/src/library/scala/collection/immutable/IndexedSeq.scala
index 3db217a5f3..ba432517ff 100644
--- a/src/library/scala/collection/immutable/IndexedSeq.scala
+++ b/src/library/scala/collection/immutable/IndexedSeq.scala
@@ -22,6 +22,7 @@ trait IndexedSeq[+A] extends Seq[A]
with GenericTraversableTemplate[A, IndexedSeq]
with IndexedSeqLike[A, IndexedSeq[A]] {
override def companion: GenericCompanion[IndexedSeq] = IndexedSeq
+ override def toIndexedSeq[B >: A]: IndexedSeq[B] = this
}
/** $factoryInfo