mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
16 lines
252 B
Kotlin
16 lines
252 B
Kotlin
fun foo(numbers: Collection<Int>) {
|
|
for (i in numbers) {
|
|
val b: Boolean
|
|
if (1 < 2) {
|
|
b = false
|
|
}
|
|
else {
|
|
b = true
|
|
}
|
|
use(b)
|
|
continue
|
|
}
|
|
}
|
|
|
|
fun use(vararg a: Any?) = a
|