Files
kotlin/compiler/testData/codegen/box/enum/kt18731.kt
2018-07-23 15:08:18 +03:00

14 lines
200 B
Kotlin
Vendored

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