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

No BuildFrom instance for concurrent.Map #13047

Open
lrytz opened this issue Oct 18, 2024 · 0 comments · May be fixed by scala/scala#10891
Open

No BuildFrom instance for concurrent.Map #13047

lrytz opened this issue Oct 18, 2024 · 0 comments · May be fixed by scala/scala#10891

Comments

@lrytz
Copy link
Member

lrytz commented Oct 18, 2024

Welcome to Scala 2.13.15 (OpenJDK 64-Bit Server VM, Java 21.0.1).
Type in expressions for evaluation. Or try :help.

scala> implicitly[collection.BuildFrom[collection.concurrent.Map[String, String], (String, String), collection.concurrent.Map[String, String]]]
                 ^
       error: Cannot construct a collection of type scala.collection.concurrent.Map[String,String] with elements of type (String, String) based on a collection of type scala.collection.concurrent.Map[String,String].

it works for mutable.Map.

PR coming, though not sure if we can fix it in a binary compatible manner.

@lrytz lrytz self-assigned this Oct 18, 2024
@SethTisue SethTisue added this to the 2.13.17 milestone Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants