blob: 4eaa4e7426cb4d861225ea87a78c11ae324afe15 [file]
// RUN_PIPELINE_TILL: FRONTEND
// FIR_IDENTICAL
//KT-2369 Variable is not marked as uninitialized in 'finally' section
fun main() {
var x : Int
try {
throw Exception()
}
finally {
doSmth(<!UNINITIALIZED_VARIABLE!>x<!> + 1)
}
}
fun doSmth(a: Any?) = a
/* GENERATED_FIR_TAGS: additiveExpression, functionDeclaration, integerLiteral, localProperty, nullableType,
propertyDeclaration, tryExpression */