e9c9d5731e
This is in preparation for enabling the tests for FIR which will be easier to do when the tests are on the new infrastructure.
29 lines
635 B
Kotlin
Vendored
29 lines
635 B
Kotlin
Vendored
// The local `i` is visible in the finally block with old backend.
|
|
// IGNORE_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: test.kt
|
|
fun box(): String {
|
|
try {
|
|
for (i in 0 until 1) {
|
|
try {
|
|
val x = "x"
|
|
val y = "y"
|
|
} finally {
|
|
return "FAIL1"
|
|
}
|
|
}
|
|
} finally {
|
|
return "OK"
|
|
}
|
|
return "FAIL2"
|
|
}
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:6 box:
|
|
// test.kt:7 box:
|
|
// test.kt:8 box: i:int=0:int
|
|
// test.kt:9 box: i:int=0:int
|
|
// test.kt:10 box: i:int=0:int, x:java.lang.String="x":java.lang.String
|
|
// test.kt:12 box: i:int=0:int
|
|
// test.kt:16 box:
|