mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
15 lines
133 B
Kotlin
Vendored
15 lines
133 B
Kotlin
Vendored
enum class En {
|
|
A,
|
|
B
|
|
}
|
|
|
|
fun box(): String {
|
|
|
|
val u: Unit = when(En.A) {
|
|
En.A -> {}
|
|
En.B -> {}
|
|
}
|
|
|
|
return "OK"
|
|
}
|