FIR: fork flow on function entry, restore receivers on exit

^KT-52680 Fixed
This commit is contained in:
pyos
2022-06-09 11:34:59 +02:00
committed by Dmitriy Novozhilov
parent 3ba11711d2
commit 9968fa252a
11 changed files with 116 additions and 23 deletions
@@ -1,10 +0,0 @@
fun x(): Boolean { return true }
public fun foo(p: String?): Int {
// Exotic variant with unused literal
do { ->
p!!.length
} while (!x())
// Literal is not called so p.length is unsafe
return p.length
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun x(): Boolean { return true }
public fun foo(p: String?): Int {