Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt2369.kt
T
2020-06-19 15:53:09 +03:00

14 lines
257 B
Kotlin
Vendored

// 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