Simplify and fix "recursive equals" inspection (related to KT-13702)

This commit is contained in:
Mikhail Glukhikh
2017-11-27 18:10:12 +03:00
parent b8fcdea673
commit e301506460
3 changed files with 24 additions and 12 deletions
@@ -0,0 +1,9 @@
// PROBLEM: none
class Test {
override fun equals(other: Any?): Boolean {
val another = Test()
if (<caret>another == other) return true
return false
}
}