Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/TryFinally.fir.kt
T

22 lines
298 B
Kotlin
Vendored

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