title: Kotlin equals (==) sign not recognized
body: <p>I have very strange behavior when using Kotlin class.</p>
  
  <p>I have those simple classes : </p>
  
  <p><code>ClassA</code> class:</p>
  
  <pre><code>@Entity
  class ClassA() : AbstractAuditable&lt;Long&gt;()
  </code></pre>
  
  <p><code>AbstractAuditable</code> class</p>
  
  <pre><code>open class AbstractAuditable&lt;T : Serializable&gt; : AbstractPersistable&lt;T&gt;() {
  
  
  //    @Suppress("RedundantOverride")
  //    override fun equals(other: Any?): Boolean {
  //        return super.equals(other)
  //    }
  
  }
  </code></pre>
  
  <p><code>AbstractPersistable</code>  <strong>JAVA</strong> class has this equals method overridden</p>
  
  <pre><code>@Override
  public boolean equals(Object obj) {
  
  }
  </code></pre>
  
  <p>Strange thing is that when I try to use equals operator <code>==</code>
  it can not be resolved.</p>
  
  <p><a href="https://i.stack.imgur.com/z5L3M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z5L3M.png" alt="enter image description here"></a></p>
  
  <p><strong>Observation I</strong>:   When I uncomment <code>AbstractAuditable</code>s equals method everything works. </p>
  
  <p><strong>Observation II</strong>:   As  the <a href="https://kotlinlang.org/docs/reference/equality.html" rel="nofollow noreferrer">documentation</a> says <code>==</code> sign searches for <code>equals(Any?)</code> method. and in this case, it is not able to find it because only <code>equals</code> method in parent hierarchy is <code>AbstractPersistable</code>s <code>equals(Object)</code> method.</p>
  
  <p><strong>Observation III</strong>:  Using <code>===</code> works.</p>
  
  <p><strong>Observation IV</strong>:  It is not the IntelliJ issue. Command-line build gives the same results</p>
  
  <p>Why is Kotlin not able to use <code>equals(Object)</code> method from java class as <code>equals(Any?)</code> equivalent?</p>