diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/TraversableOnce.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/TraversableOnce.scala b/src/library/scala/collection/TraversableOnce.scala index 0334322dbc..639610a30c 100644 --- a/src/library/scala/collection/TraversableOnce.scala +++ b/src/library/scala/collection/TraversableOnce.scala @@ -379,7 +379,7 @@ object TraversableOnce { * @return the result of invoking the `genericBuilder` method on `from`. */ def apply(from: Coll[_]): Builder[A, Coll[A]] = from match { - case xs: generic.GenericTraversableTemplate[_, _] => xs.genericBuilder mapResult { + case xs: generic.GenericTraversableTemplate[_, _] => xs.genericBuilder.asInstanceOf[Builder[A, Traversable[A]]] mapResult { case res => traversableToColl(res.asInstanceOf[GenTraversable[A]]) } case _ => newIterator |