mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
16 lines
327 B
Plaintext
Vendored
16 lines
327 B
Plaintext
Vendored
// PLATFORM: Common
|
|
class A {
|
|
fun foo() {
|
|
|
|
}
|
|
|
|
<caret>override fun equals(other: Any?): Boolean {
|
|
if (this === other) return true
|
|
if (other == null || this::class != other::class) return false
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return this::class.hashCode()
|
|
}
|
|
} |