Files
kotlin-fork/js/js.translator/testData/box/expression/equals/compareToNullWithCustomEquals.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +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"
}