Files
kotlin-fork/compiler/testData/ir/irText/expressions/tryCatch.kt
T

28 lines
330 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()
}
}