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

9 lines
292 B
Kotlin
Vendored

public fun foo(p: String?, y: String?): Int {
do {
// After this !!, y. should be smartcasted in loop as well as outside
y!!.length
if (p == null) break
<!DEBUG_INFO_SMARTCAST!>y<!>.length
} while (true)
return <!DEBUG_INFO_SMARTCAST!>y<!>.length
}