mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
26 lines
579 B
Plaintext
26 lines
579 B
Plaintext
// ERROR: Unresolved reference: javaClass
|
|
// ERROR: Unresolved reference: javaClass
|
|
|
|
// IGNORE_K2
|
|
|
|
open class Any {
|
|
override fun hashCode(): Int = 0
|
|
}
|
|
|
|
class WithConstructor(x: Int, s: String) : Any() {
|
|
val x: Int = 0
|
|
val s: String = ""
|
|
|
|
override fun hashCode(): Int = 1
|
|
override fun equals(other: kotlin.Any?): Boolean {
|
|
if (this === other) return true
|
|
if (javaClass != other?.javaClass) return false
|
|
|
|
other as WithConstructor
|
|
|
|
if (x != other.x) return false
|
|
if (s != other.s) return false
|
|
|
|
return true
|
|
}
|
|
} |