Files
kotlin-fork/compiler/testData/codegen/bytecodeText/localInitializationLVT/var.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

12 lines
188 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun test(): Char {
var c: Char
run {
c = ' '
}
return c
}
// 1 ASTORE 0
// 1 LOCALVARIABLE c Lkotlin/jvm/internal/Ref\$CharRef; L1 L10 0