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:
parent
aafbe68aba
commit
331177879c
|
@ -1,6 +0,0 @@
|
|||
package scala.collection
|
||||
import generic.CanBuildFrom
|
||||
|
||||
package object generic {
|
||||
type CanBuild[-Elem, +To] = CanBuildFrom[Nothing, Elem, To]
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue