10 lines
129 B
Kotlin
10 lines
129 B
Kotlin
namespace foo
|
|
|
|
fun box() : Boolean {
|
|
var a = 4
|
|
when(a) {
|
|
is 3 => {a = 10;}
|
|
is 4 => {a = 20;}
|
|
}
|
|
return (a == 20)
|
|
} |