Files
kotlin-fork/js/js.translator/testData/box/expression/equals/compareToNullWithCustomEquals.kt
T
2016-09-29 12:00:40 +03:00

17 lines
256 B
Kotlin
Vendored

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"
}