mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
239 B
Kotlin
Vendored
13 lines
239 B
Kotlin
Vendored
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"
|
|
}
|