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