[AA] allow navigation from '==' to the equals method of lhs

This commit is contained in:
Anna Kozlova
2023-01-13 13:45:29 +01:00
committed by teamcity
parent 825432074f
commit 86cc57ac39
12 changed files with 137 additions and 0 deletions
@@ -0,0 +1,5 @@
package test
class A(val n: Any) {
override infix fun equals(other: Any?): Boolean = other is A && other.n <caret>== n
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.Any) open operator fun equals(other: kotlin.Any?): kotlin.Boolean
@@ -0,0 +1,5 @@
package test
class A(val n: Any) {
override fun equals(other: Any?): Boolean = other is A && other.n <caret>== n
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.Any) open operator fun equals(other: kotlin.Any?): kotlin.Boolean
@@ -0,0 +1,5 @@
package test
class A(val n: Any) {
override infix fun equals(other: Any?): Boolean = other is A && other.n <caret>!= n
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in kotlin.Any) open operator fun equals(other: kotlin.Any?): kotlin.Boolean