Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/TryFinally.kt
T
2014-10-01 18:52:52 +04:00

20 lines
317 B
Kotlin

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