Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/loops/whileInConditionWithBreak.fir.kt
T

9 lines
161 B
Kotlin
Vendored

fun bar(): Boolean { return true }
fun foo(s: String?): Int {
while (s!!.length > 0) {
s.length
if (bar()) break
}
return s.length
}