mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
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.
15 lines
259 B
Kotlin
Vendored
15 lines
259 B
Kotlin
Vendored
fun test(): java.lang.Integer {
|
|
val c: java.lang.Integer
|
|
run {
|
|
c = java.lang.Integer(1)
|
|
}
|
|
return c
|
|
}
|
|
|
|
// 2 ASTORE 0
|
|
|
|
// JVM_TEMPLATES
|
|
// 1 LOCALVARIABLE c Ljava/lang/Integer;
|
|
|
|
// JVM_IR_TEMPLATES
|
|
// 1 LOCALVARIABLE c Ljava/lang/Object; |