Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/loops/whileInConditionWithBreak.kt
T
2015-10-14 20:39:35 +03:00

9 lines
215 B
Kotlin
Vendored

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