mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
- generate fake jump instructions so that we can always analyze stack depths - fix stack before break and continue by dropping excessive elements (e.g., *a*.foo(*b*, c?:continue)) - Analyzer rewritten in Kotlin, with more flexible control of CFG traversal #Fixed KT-3340 #Fixed KT-4258 #Fixed KT-7941
12 lines
219 B
Kotlin
Vendored
12 lines
219 B
Kotlin
Vendored
fun box(): String {
|
|
OUTER@while (true) {
|
|
var x = ""
|
|
try {
|
|
do {
|
|
x = x + break@OUTER
|
|
} while (true)
|
|
} finally {
|
|
return "OK"
|
|
}
|
|
}
|
|
} |