mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
7 lines
131 B
Kotlin
7 lines
131 B
Kotlin
data class A(val x: Int) {
|
|
fun hashCode(): Int = -3
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (A(0).hashCode() == -3) "OK" else "fail"
|
|
} |