scala/scala — pull request #1850 by xuwei-k (2013-01-06 09:07:59+00:00)
Title: fix IsTraversableLike example code

Can't compile current example code. Maybe copy/paste mistakes form `IsTraversableOnce`

```scala
$ scala
Welcome to Scala version 2.10.0 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_09).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scala.collection._
import scala.collection._

scala> import scala.collection.generic._
import scala.collection.generic._

scala> class FilterMapImpl[A, Repr](val r: GenTraversableLike[A, Repr]) {
| final def filterMap[B, That](f: A => Option[B])(implicit cbf: CanBuildFrom[Repr, B, That]): That =
| r.flatMap(f(_).toSeq)
| }
defined class FilterMapImpl

scala> implicit def filterMap[Repr, A](r: Repr)(implicit fr: IsTraversableOnce[Repr]): FilterMapImpl[fr.A,Repr] =
| new FilterMapImpl(fr.conversion(r))
:15: error: type mismatch;
found : scala.collection.GenTraversableOnce[fr.A]
required: scala.collection.GenTraversableLike[fr.A,Repr]
new FilterMapImpl(fr.conversion(r))
^
```

https://github.com/scala/scala/blob/v2.10.0/test/files/run/enrich-gentraversable.scala#L7-L12