mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
195 B
Kotlin
Vendored
11 lines
195 B
Kotlin
Vendored
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"
|
|
} |