Files
kotlin-fork/js/js.translator/testData/box/expression/equals/compareToNullWithCustomEquals.kt
T
2018-04-27 20:02:59 +03:00

18 lines
290 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1123
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"
}