ed83e3ccef
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.
16 lines
260 B
Kotlin
Vendored
16 lines
260 B
Kotlin
Vendored
fun test(): Char {
|
|
lateinit var c: Any
|
|
run {
|
|
c = ' '
|
|
}
|
|
return c as Char
|
|
}
|
|
|
|
// 1 LOCALVARIABLE c Ljava/lang/Object;
|
|
|
|
// JVM_TEMPLATES
|
|
// 2 ASTORE 0
|
|
|
|
// JVM_IR_TEMPLATES
|
|
// 3 ASTORE 0
|
|
// *two* of them are after the start of c's live range |