mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
^KTIJ-20924 Fixed closes https://github.com/JetBrains/intellij-community/pull/1938 GitOrigin-RevId: 8b486bebe9cf4edfd399f690ebe546bf15bc4ed8
18 lines
430 B
Plaintext
18 lines
430 B
Plaintext
abstract class A {
|
|
abstract override fun hashCode(): Int
|
|
abstract override fun equals(other: Any?): Boolean
|
|
}
|
|
|
|
interface I
|
|
|
|
class B : A(), I {
|
|
<selection><caret></selection>override fun equals(other: Any?): Boolean {
|
|
if (this === other) return true
|
|
if (javaClass != other?.javaClass) return false
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return javaClass.hashCode()
|
|
}
|
|
} |