Revert "added CanBuild type alias in package object scala.collection.generic" because it broke scaladoc (I consider that a bug -- filing ticket)

This reverts commit 5b3ba1c27cdce76d8aef2bfb9aa5a836237521a9.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19229 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
moors 2009-10-22 11:58:42 +00:00
parent aafbe68aba
commit 331177879c
2 changed files with 1 additions and 7 deletions

View File

@ -1,6 +0,0 @@
package scala.collection
import generic.CanBuildFrom
package object generic {
type CanBuild[-Elem, +To] = CanBuildFrom[Nothing, Elem, To]
}

View File

@ -2,7 +2,7 @@ import scala.collection.generic._
import scala.collection._
object Test {
def collect[A, Res](r: Traversable[A])(implicit bf: CanBuild[A, Res]) = {
def collect[A, Res](r: Traversable[A])(implicit bf: CanBuildFrom[Nothing, A, Res]) = {
val b = bf()
for (a <- r) b += a
b.result