Put default value to vars iff they are not boxed
#KT-24672 Fixed
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
import kotlin.random.Random
|
||||
|
||||
fun test(): Char {
|
||||
var c: Char
|
||||
if (Random.nextBoolean())
|
||||
c = '1'
|
||||
else
|
||||
c = '2'
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
// 3 ISTORE 0
|
||||
// 1 LOCALVARIABLE c C L1 L5 0
|
||||
Reference in New Issue
Block a user