diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-01 22:23:37 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-01 22:24:51 -0700 |
commit | bbad15b59167dbf9780abbec56d6f817372c40c7 (patch) | |
tree | 094e107c3779794f185c8469d6ee080e27f24364 /src/library | |
parent | 3bd40d80f8acd307283a70b76a01d6554dc64510 (diff) | |
download | scala-bbad15b59167dbf9780abbec56d6f817372c40c7.tar.gz scala-bbad15b59167dbf9780abbec56d6f817372c40c7.tar.bz2 scala-bbad15b59167dbf9780abbec56d6f817372c40c7.zip |
Workaround for scaladoc failure.
Addressing this little fellow:
21:40:22 [scaladoc] src/library/scala/collection/TraversableOnce.scala:382: error: missing parameter type for expanded function
21:40:22 [scaladoc] The argument types of an anonymous function must be fully known. (SLS 8.5)
21:40:22 [scaladoc] Expected type was: _[?] => Coll[A]
21:40:22 [scaladoc] case xs: generic.GenericTraversableTemplate[_, _] => xs.genericBuilder mapResult {
21:40:22 [scaladoc] ^
Diffstat (limited to 'src/library')
-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 |