Files
kotlin-fork/compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedVarsOfSize2.kt
T
pyos ed83e3ccef Optimize more redundant kotlin/jvm/internal/Refs
The number of initializations of the `value` field before the live range
begins does not really matter so long as we insert a write of a default
value to the local if there were none.
2020-03-02 20:20:55 +03:00

24 lines
316 B
Kotlin
Vendored

fun box(): String {
var xl = 0L // Long, size 2
var xi = 0 // Int, size 1
var xd = 0.0 // Double, size 2
run {
xl++
xd += 1.0
xi++
}
run {
run {
xl++
xd += 1.0
xi++
}
}
return "OK"
}
// 0 NEW