Files
kotlin/compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt
2016-11-09 21:41:12 +03:00

18 lines
352 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// 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"
}