22 lines
298 B
Kotlin
Vendored
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)
|
|
}
|