Inspections: Forbid equals/hashCode inspection on object with explicit supertypes
#KT-9778 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user