Files
kotlin/compiler/testData/codegen/boxWithStdlib/deadCodeElimination/emptyVariableRange.kt
Denis Zharkov 5675d2b26b Dead code elimination
#KT-6602 Fixed
 #KT-6305 Fixed
 #KT-5656 Fixed
2015-01-15 15:13:05 +03:00

13 lines
239 B
Kotlin

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"
}