blob: e6ab5573530d418ae854256b0e640b078d7f1234 [file]
// RUN_PIPELINE_TILL: CODEGEN
fun use(arg: String?) = arg
fun sample(): String? {
try {
if (false) {
return "fail"
} else {
if (false) {
if (false) {
var foo: String? = null
try {
foo = "test"
} catch (e: Exception) {
return "fail"
} finally {
use(foo) // 'foo' is initialized here
}
}
return "fail"
}
}
} finally {}
return null
}
/* GENERATED_FIR_TAGS: assignment, functionDeclaration, ifExpression, localProperty, nullableType, propertyDeclaration,
stringLiteral, tryExpression */