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

9 lines
216 B
Kotlin
Vendored

fun bar(): Boolean { return true }
fun foo(s: String?): Int {
do {
if (bar()) break
} while (s!!.length > 0)
// This call is unsafe due to break
return s.<!INAPPLICABLE_CANDIDATE!>length<!>
}