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