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

11 lines
267 B
Kotlin
Vendored

fun x(): Boolean { return true }
public fun foo(p: String?): Int {
// See KT-6283
do {
p!!.length
if (p == "abc") continue
} while (!x())
// p should be smart casted despite of continue
return <!DEBUG_INFO_SMARTCAST!>p<!>.length
}