Recursive equals: fix false positive with different argument

Related to KT-13702
This commit is contained in:
Mikhail Glukhikh
2017-11-28 11:20:44 +03:00
parent 917be5d271
commit 13e0ba0836
3 changed files with 23 additions and 4 deletions
@@ -0,0 +1,9 @@
// PROBLEM: none
class Test {
override fun equals(other: Any?): Boolean {
val s = Test()
if (<caret>this == s) return true
return false
}
}