Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/loops/nestedDoWhileWithLongContinue.fir.kt
T
2020-02-03 16:45:20 +03:00

14 lines
329 B
Kotlin
Vendored

fun x(): Boolean { return true }
public fun foo(p: String?, r: String?): Int {
outer@ do {
do {
p!!.length
if (!x()) continue@outer
} while (r == null)
} while (!x())
// Auto cast NOT possible due to long continue
r.length
// Auto cast possible
return p.length
}