Files
kotlin-fork/js/js.translator/testData/box/expression/equals/compareToNullWithCustomEquals.kt
T
2018-09-12 09:49:25 +03:00

18 lines
290 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1290
package foo
class A {
override fun equals(other: Any?) = super.equals(other)
}
fun box(): String {
val a: A? = null
testTrue { a == null }
testFalse { a != null }
testTrue { null == a }
testFalse { null != a }
return "OK"
}