summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/immutable/Vector.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-17 17:58:20 -0700
committerPaul Phillips <paulp@improving.org>2012-08-17 20:18:28 -0700
commit823239f347dd516214a64d755f0d09e9e0321d9c (patch)
treecea9efc16ac6aff4fabfc58c28b825bd22aac358 /src/library/scala/collection/immutable/Vector.scala
parent0fc0038e33b629efcaa0aa314b0e69419c116777 (diff)
downloadscala-823239f347dd516214a64d755f0d09e9e0321d9c.tar.gz
scala-823239f347dd516214a64d755f0d09e9e0321d9c.tar.bz2
scala-823239f347dd516214a64d755f0d09e9e0321d9c.zip
Modified SI-6150 fix again.
Have to keep a sharp eye on those ReusableCBFs. Now all the indexed sequences should be using the same instance.
Diffstat (limited to 'src/library/scala/collection/immutable/Vector.scala')
-rw-r--r--src/library/scala/collection/immutable/Vector.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/collection/immutable/Vector.scala b/src/library/scala/collection/immutable/Vector.scala
index f912285143..dc65253a55 100644
--- a/src/library/scala/collection/immutable/Vector.scala
+++ b/src/library/scala/collection/immutable/Vector.scala
@@ -17,10 +17,10 @@ import scala.collection.parallel.immutable.ParVector
/** Companion object to the Vector class
*/
-object Vector extends SeqFactory[Vector] {
- @inline implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, Vector[A]] =
- scala.collection.IndexedSeq.ReusableCBF.asInstanceOf[GenericCanBuildFrom[A]]
+object Vector extends IndexedSeqFactory[Vector] {
def newBuilder[A]: Builder[A, Vector[A]] = new VectorBuilder[A]
+ implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, Vector[A]] =
+ ReusableCBF.asInstanceOf[GenericCanBuildFrom[A]]
private[immutable] val NIL = new Vector[Nothing](0, 0, 0)
@inline override def empty[A]: Vector[A] = NIL
}