Files
kotlin-fork/compiler/testData/codegen/box/enum/kt18731.kt
T
2019-11-19 11:00:09 +03:00

15 lines
230 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_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"
}
}