blob: 18f2fb67db1a8306922d4b455f0acfc617d26a2c [file]
// RUN_PIPELINE_TILL: BACKEND
// ISSUE: KT-51759
fun testBreak(b: Boolean, s: String?) {
while (b) {
val x: String?
try {
x = s ?: break
} finally {
}
x!!.length
}
}
fun testContinue(b: Boolean, s: String?) {
while (b) {
val x: String?
try {
x = s ?: continue
} finally {
}
x!!.length
}
}
/* GENERATED_FIR_TAGS: assignment, break, checkNotNullCall, continue, elvisExpression, functionDeclaration,
localProperty, nullableType, propertyDeclaration, smartcast, tryExpression, whileLoop */