Files
kotlin-fork/compiler/testData/debug/localVariables/tryFinally17.kt
T
2021-08-20 00:59:55 +02:00

23 lines
498 B
Kotlin
Vendored

// FILE: test.kt
fun box(): String {
try {
val x = "x"
throw RuntimeException(x)
} finally {
return "OK"
}
return "FAIL"
}
// IGNORE_BACKEND: JVM
// The old backend steps on line 4, 5, 9, and 8. No step on the throw, and a step on the end
// brace of the finally before going into the actual finally code.
// LOCAL VARIABLES
// test.kt:4 box:
// test.kt:5 box:
// test.kt:6 box: x:java.lang.String="x":java.lang.String
// test.kt:7 box:
// test.kt:8 box: