blob: 84db1bf469a4af9c06b615f60b60538701f32cec [file]
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-42995
fun test() {
val a: Int
try {
run {
a = 1
a.inc()
throw Exception("hmm")
}
} catch (e: Exception) {
<!VAL_REASSIGNMENT!>a<!> = 2
a.inc()
}
}
/* GENERATED_FIR_TAGS: assignment, functionDeclaration, integerLiteral, lambdaLiteral, localProperty,
propertyDeclaration, stringLiteral, tryExpression */