Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected result mapping a PathSet #86

Open
jesseeichar opened this issue Apr 24, 2013 · 1 comment
Open

Unexpected result mapping a PathSet #86

jesseeichar opened this issue Apr 24, 2013 · 1 comment

Comments

@jesseeichar
Copy link
Owner

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?

@umhan35
Copy link

umhan35 commented Jul 2, 2015

I found this too. I had to use toList on PathSet to get a general list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants