I am trying to write an android Kotlin application but I got below error. Where have I gone wrong ?
This is how I have declared my HashMap:
var mParent: MutableMap<*, *> ?= null
mParent = HashMap()
Error:
type inference failed. Not enough information to infer parameter K in constructor HashMap. Please specify it explicitly