Files
kotlin-fork/compiler/testData/ir/irText/expressions/tryCatch.kt
T
2016-10-18 09:09:32 +03:00

29 lines
342 B
Kotlin
Vendored

// WITH_RUNTIME
fun test1() {
try {
println()
}
catch (e: Throwable) {
println()
}
finally {
println()
}
}
fun test2(): Int {
return try {
println()
42
}
catch (e: Throwable) {
println()
24
}
finally {
println()
555
}
}