mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
17 lines
235 B
Kotlin
Vendored
17 lines
235 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
|
|
import kotlin.random.Random
|
|
|
|
fun test(): Char {
|
|
val c: Char
|
|
if (Random.nextBoolean()) {
|
|
c = '1'
|
|
} else {
|
|
c = '2'
|
|
}
|
|
return c
|
|
}
|
|
|
|
// 3 ISTORE 0
|
|
// 1 LOCALVARIABLE c C L1 L7 0
|