[FIR] Properly create edges from return expression to finally block

^KT-48376 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-08-25 11:00:56 +03:00
parent 16b7735cd6
commit 3176dd1341
8 changed files with 211 additions and 4 deletions
@@ -0,0 +1,19 @@
// DUMP_CFG
// ISSUE: KT-48376
fun test() {
val b: Boolean
try {
val s = getStringOrNull() ?: return
b = s.length != 0
} finally {
test()
}
takeBoolean(b)
}
fun takeBoolean(b: Boolean) {}
fun getStringOrNull(): String? {
return "hello"
}