mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
- Rewrite branches targeting other branches to target directly the final destination to avoid runtime performance penalties. Fix of https://youtrack.jetbrains.com/issue/KT-17110
21 lines
341 B
Kotlin
Vendored
21 lines
341 B
Kotlin
Vendored
fun test(x: Int, y: Int): String {
|
|
var result: String
|
|
if (x == 6) {
|
|
if (y == 6) {
|
|
result = "a"
|
|
} else {
|
|
result = "b"
|
|
}
|
|
} else {
|
|
result = "c"
|
|
}
|
|
return result
|
|
}
|
|
|
|
fun box(): String {
|
|
if (test(9, 10) != "c")
|
|
return "Failures"
|
|
return "OK"
|
|
}
|
|
|
|
// 2 GOTO L7 |