For Scala code < 2.13, I am using a MultiMap as defined here MultiMap. Using the example code found there, I was hoping to update it by simply replacing the code:
val mm = new HashMap[Int, Set[String]] with MultiMap[Int, String]
with
val mm2 = new HashMap[Int, Set[String]] with MultiDict[Int, String]
But instead I get the following error:
illegal inheritance;
<$anon: Int => scala.collection.mutable.Set[String]
with scala.collection.MultiDict[Int,String]> inherits different type instances of trait Iterable:
Iterable[(Int, String)] and Iterable[(Int, scala.collection.mutable.Set[String])]