Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/TryFinally.kt
T
2012-11-16 17:56:21 +04:00

20 lines
263 B
Kotlin

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