title: Kotlin Playground – Variable 'mainProperty' initializer is redundant
body: <p>I'm testing <code>Any</code> type in Kotlin Playground:</p>
  <pre><code>fun main() {
      
      var mainProperty: Any? = 5.0
      
      mainProperty = &quot;Hello, Kotlin!&quot;
  
      println(mainProperty)
  }
  </code></pre>
  <p>Why when I assign a new value to property of type <code>Any</code>, playground prints result but give me the following message?</p>
  <pre><code>// Variable 'mainProperty' initializer is redundant
  </code></pre>
  <p><a href="https://i.stack.imgur.com/dhfrx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dhfrx.jpg" alt="enter image description here" /></a></p>