Add inspection for equals which is called recursively within itself

So #KT-13702 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-11-09 17:24:30 +03:00
committed by Mikhail Glukhikh
parent bd348911af
commit b8fcdea673
7 changed files with 132 additions and 0 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.RecursiveEqualsCallInspection
@@ -0,0 +1,6 @@
class Test {
override fun equals(other: Any?): Boolean {
if (<caret>this == other) return true
return false
}
}
@@ -0,0 +1,6 @@
class Test {
override fun equals(other: Any?): Boolean {
if (this === other) return true
return false
}
}