mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Extensions on nullable types remain in Library.kt #KT-1741 Obsolete #KT-2805 Obsolete #KT-1365 Fixed #KT-4517 In Progress
7 lines
140 B
Kotlin
7 lines
140 B
Kotlin
data class A(val x: Int) {
|
|
override fun hashCode(): Int = -3
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (A(0).hashCode() == -3) "OK" else "fail"
|
|
} |