mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
12 lines
225 B
Kotlin
Vendored
12 lines
225 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
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"
|
|
} |