标签: scala
object Toto { def bla[A <: Any](keys: String*): Map[String, A] = ??? val a = bla("sdfa") // This is of type Map[String, Nothing] }
我们是否可以默认A为Any,如果未指定bla,则Map[String, Any]会返回A?
A
Any
bla
Map[String, Any]
干杯