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