我正在尝试用不同的地图创建地图
val mymap = Map("name"->"somename",Map(1->2))
我从编译器得到:
scala: type mismatch;
found : scala.collection.immutable.Map[Int,Int]
required: (?, ?)
val mymap = Map("name"->"somename",Map(1->2))
^