Inspections: Forbid equals/hashCode inspection on object with explicit supertypes

#KT-9778 Fixed
This commit is contained in:
Alexey Sedunov
2015-11-19 20:31:57 +03:00
parent d652623f90
commit b6a5d30469
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -36,4 +36,14 @@ interface I {
enum E {
override fun equals(other: Any?) = true
override fun hashCode() = 0
}
abstract class T
object O4 : A() {
override fun equals(other: Any?) = true
}
object O5 : A() {
override fun hashCode() = 0
}