given:
val m = Map[String, Int](\"a\" -> 1, \"b\" -> 2, \"c\" -> 3) m.foreach((key: String, value: Int) => println(\">>> key=\" + key + \",
The confusing error message is a compiler bug, which should be fixed in 2.9.2: