mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
Extensions on nullable types remain in Library.kt #KT-1741 Obsolete #KT-2805 Obsolete #KT-1365 Fixed #KT-4517 In Progress
11 lines
195 B
Kotlin
11 lines
195 B
Kotlin
class Dummy {
|
|
override fun equals(other: Any?) = true
|
|
}
|
|
|
|
data class A(val v: Any?)
|
|
|
|
fun box() : String {
|
|
val a = A(Dummy())
|
|
val b: A? = null
|
|
return if(a != b && b != a) "OK" else "fail"
|
|
} |