10 lines
108 B
Kotlin
10 lines
108 B
Kotlin
fun z() {}
|
|
|
|
fun foo(x: Int) {
|
|
when (x) {
|
|
21 -> z()
|
|
42 -> z()
|
|
else -> {}
|
|
}
|
|
}
|