12 lines
198 B
Kotlin
Vendored
12 lines
198 B
Kotlin
Vendored
enum class EC {
|
|
A, B;
|
|
companion object {
|
|
fun u(ec: EC): Boolean {
|
|
return when (ec) {
|
|
A -> true
|
|
B -> false
|
|
}
|
|
}
|
|
}
|
|
}
|