Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/TryFinally.kt
T
2013-12-11 19:53:50 +04:00

20 lines
315 B
Kotlin

fun tryFinally(x: Int?) {
try {
} finally {
x!!
}
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
fun tryCatchFinally(x: Int?) {
try {
x!!
} catch (e: Exception) {
x!!
} finally {
<!TYPE_MISMATCH!>x<!> : Int
x!!
}
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}