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
@@ -0,0 +1,24 @@
interface I {
val prop: Int
}
open class A {
fun f1() {
this as I
<!DEBUG_INFO_IMPLICIT_RECEIVER_SMARTCAST!>prop<!>
}
fun f2() {
<!UNRESOLVED_REFERENCE!>prop<!>
}
}
open class B {
fun f() {
{
this as I
<!DEBUG_INFO_IMPLICIT_RECEIVER_SMARTCAST!>prop<!>
}
<!UNRESOLVED_REFERENCE!>prop<!>
}
}