Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/varInitializationInIfInCycle.kt
T

17 lines
269 B
Kotlin
Vendored

// FIR_IDENTICAL
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