JS backend: compare enum entries strictly

#KT-7840 fixed
This commit is contained in:
Zalim Bashorov
2015-06-01 22:09:35 +03:00
parent 4f0a858e93
commit 6aaccae6a9
3 changed files with 51 additions and 13 deletions
+20
View File
@@ -0,0 +1,20 @@
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"
}