Fix of getCorrespondingLoop for complex loop / try-finally trees #KT-8246 Fixed
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
fun foo() {
|
||||
outer@while (true) {
|
||||
try {
|
||||
while (true) {
|
||||
continue@outer
|
||||
}
|
||||
} finally {
|
||||
break
|
||||
}
|
||||
}
|
||||
println("OK")
|
||||
}
|
||||
|
||||
fun bar(): String {
|
||||
outer@while (true) {
|
||||
try {
|
||||
while (true) {
|
||||
continue@outer
|
||||
}
|
||||
} finally {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user