I wanted to get the filenames from a PathSet, so I tried doing this:
ps.map(_.name)
That, unexpectedly, doesn't really work. Well, it works, but the result is not a PathSet[String]. Instead, the result is:
scalax.file.PathSet[Comparable[_ >: String with scalax.file.Path <: Comparable[_ >: String with scalax.file.Path <: Comparable[_ >: String with scalax.file.Path <: Object]]]]
It works if I use breakOut, and it works if I transform it into something other than a PathSet first.
Is this truly necessary, or could it be solved by dropping a covariance or moving some implicit to a lower priority?
--
Daniel C. Sobral
I travel to the future all the time.