I'm attempting to pimp TraversableLike using Miles Sabins answer to How do I apply the enrich-my-library pattern to Scala collections? However the compiler doesn't recognise FromRepr, HasElem or implicitConversions
package packMain
import scala.collection.generic.{ CanBuildFrom, FromRepr, HasElem }
import language.implicitConversions
class ImplClasses {}
FromRepr is not a member of scala.collection.generic
HasElem is not a member of scala.collection.generic
not found object language
I've tried using Eclipse Indigo with Scala plug-in 2.02 and 2.9.2 Final and Eclipse 4.2 Juno with Scala plug-in 2.1M2 and 2.10.0M7 Edit:
import language.implicitConversions._ //works in 2.10M7 as gilad hock's comment
import scala.collection.generic.FromRepr._ //object FromRep is not a member of ...
import scala.collection.generic.HasElem._ //object HasElem is not a member of ...