我想写一个android kotlin应用程序,但我得到了以下错误。我哪里错了?错误:类型推断失败
这是怎么了我宣布我的HashMap:
var mParent: MutableMap<*, *> ?= null
mParent = HashMap()
错误:
type inference failed. Not enough information to infer parameter K in constructor HashMap. Please specify it explicitly