Navigation Menu

Skip to content

Commit

Permalink
Workaround for scaladoc failure.
Browse files Browse the repository at this point in the history
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]                                                                                        ^
  • Loading branch information
paulp committed May 2, 2012
1 parent 3bd40d8 commit bbad15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/scala/collection/TraversableOnce.scala
Expand Up @@ -379,7 +379,7 @@ object TraversableOnce {
* @return the result of invoking the `genericBuilder` method on `from`. * @return the result of invoking the `genericBuilder` method on `from`.
*/ */
def apply(from: Coll[_]): Builder[A, Coll[A]] = from match { 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 res => traversableToColl(res.asInstanceOf[GenTraversable[A]])
} }
case _ => newIterator case _ => newIterator
Expand Down

0 comments on commit bbad15b

Please sign in to comment.