Put default value to vars iff they are not boxed

#KT-24672 Fixed
This commit is contained in:
Ilmir Usmanov
2019-01-14 15:47:18 +03:00
parent 62322dec5c
commit 76e9b574cd
12 changed files with 235 additions and 11 deletions
@@ -0,0 +1,23 @@
// IGNORE_BACKEND: JVM_IR
fun test(): Char {
var c: Char
val l = Any()
val l1 = Any()
val l2 = Any()
val l3 = Any()
val l4 = Any()
val l5 = Any()
val l6 = Any()
val l7 = Any()
val l8 = Any()
val l11 = Any()
val l12 = Any()
val l13 = Any()
val l14 = Any()
c = '1'
return c
}
// 2 ISTORE 0
// 1 LOCALVARIABLE c C L1 L16 0