mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
17 lines
240 B
Kotlin
Vendored
17 lines
240 B
Kotlin
Vendored
// KOTLIN_CONFIGURATION_FLAGS: +JVM.DISABLE_OPTIMIZATION
|
|
|
|
fun consume(i: Int) {}
|
|
|
|
fun foo(a: String) {
|
|
var b = 1
|
|
if (a[1] == 'b') {
|
|
b = 2
|
|
} else if (a[0] == 'a') {
|
|
b = 3
|
|
}
|
|
|
|
consume(b)
|
|
}
|
|
|
|
// 1 GOTO
|
|
// 2 IF |