Files
kotlin-fork/backend.native/tests/codegen/branching/when_through.kt
T

11 lines
146 B
Kotlin

fun when_through(i: Int): Int {
var value = 1
when (i) {
10 -> value = 42
11 -> value = 43
12 -> value = 44
}
return value
}