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

9 lines
238 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
y.length
} while (true)
return y.length
}