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

22 lines
376 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1305
package foo
enum class Foo {
A,
B
}
fun box(): String {
testFalse { Foo.A == Foo.B }
testTrue { Foo.A != Foo.B }
testTrue { Foo.A == Foo.A }
testFalse { Foo.A != Foo.A }
testFalse { Foo.A == null }
testTrue { Foo.A != null }
testFalse { null == Foo.A }
testTrue { null != Foo.A }
return "OK"
}