mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
Extensions on nullable types remain in Library.kt #KT-1741 Obsolete #KT-2805 Obsolete #KT-1365 Fixed #KT-4517 In Progress
8 lines
160 B
Kotlin
8 lines
160 B
Kotlin
data class A(val x: Int) {
|
|
override fun equals(other: Any?): Boolean = false
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A(0)
|
|
return if (a equals a) "fail" else "OK"
|
|
} |