[FIR] Properly create edges from return expression to finally block
^KT-48376 Fixed
This commit is contained in:
+19
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user