title: Overload resolution ambiguity. All these functions match
body: <p>I tried to check, lateinit variable is initialized or not in a function using reference operator. The function name and variable name is same in this case. So that Kotlin throws </p>
  
  <blockquote>
    <p>Overload resolution ambiguity. All these functions match</p>
  </blockquote>
  
  <p>exception. Actually what's wrong in this code?</p>
  
  <pre><code>class ABC
  
  class MyClass {
      private lateinit var abc: ABC
  
      fun abc() {
          if(!::abc.isInitialized){
              println("Hello")
          }
      }
  }
  </code></pre>