Skip to content

No BuildFrom instance for concurrent.Map #13047

Open
scala/scala
#10891
@lrytz

Description

@lrytz
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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions