Files
kotlin-fork/compiler/testData/codegen/bytecodeText/localInitializationLVT/run.kt
T
Ilmir Usmanov a52f430d8f Put default value (null or zero) to slot for uninitialized values
This way range of the variable is correct in LVT.
 #KT-24672 Fixed
2018-12-28 15:09:07 +03:00

14 lines
231 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun test(): Char {
val c: Char
run {
c = ' '
println(c)
}
return c
}
// The first on declaration, the other on initialization
// 2 ISTORE 0
// 1 LOCALVARIABLE c C L1 L13 0