Files
kotlin-fork/compiler/testData/codegen/box/enum/kt18731.kt
T
2018-06-09 19:15:38 +03:00

15 lines
225 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
enum class Bar {
ONE,
TWO
}
fun isOne(i: Bar) = i == Bar.ONE
fun box(): String {
return when (isOne(Bar.ONE) && !isOne(Bar.TWO)) {
true -> "OK"
else -> "Failure"
}
}