我想寫一個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