mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
* Move FinallyBlockLowering to common part * Fix catching of dynamic exception * Fix bridges for suspend functions * Disable explicit cast to Unit * Run lowering per module * Update some test data
15 lines
256 B
Kotlin
Vendored
15 lines
256 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
fun foo(): Int {
|
|
return 1
|
|
// val xyz has empty live range because everything after return will be removed as dead
|
|
val xyz = 1
|
|
}
|
|
|
|
fun box(): String {
|
|
assertEquals(1, foo())
|
|
return "OK"
|
|
}
|