blob: cbc39e03146703c8a56c29e6263f6bf354f5df07 [file] [log] [blame]
fun test(
b: Boolean,
i: Int
) {
if (b) {
when (i) {
0 -> foo(1)
else -> null
}
} else null
}
fun foo(i: Int) = i
fun box(): String {
test(true, 1)
return "OK"
}