Files
kotlin-fork/backend.native/tests/codegen/try/finally11.kt
T
2017-10-20 18:25:05 +03:00

20 lines
347 B
Kotlin

package codegen.`try`.finally11
import kotlin.test.*
@Test fun runTest() {
try {
try {
return
} catch (e: Error) {
println("Catch 1")
} finally {
println("Finally")
throw Error()
}
} catch (e: Error) {
println("Catch 2")
}
println("Done")
}