[FIR2IR] Align object receiver generation with K1

#KT-59548 Fixed
This commit is contained in:
Kirill Rakhman
2023-07-18 16:07:46 +02:00
committed by Space Team
parent 14327d51ed
commit c605cb9855
7 changed files with 68 additions and 297 deletions
@@ -43,6 +43,16 @@ object Z {
}
fun aFun() {
withLambda(f = local fun <anonymous>() {
Z.<set-counter>(<set-?> = 1)
Z.foo()
Z.<set-counter>(<set-?> = 1)
Z.foo()
}
)
}
val aLambda: Function0<Unit>
field = local fun <anonymous>() {
Z.<set-counter>(<set-?> = 1)
@@ -90,3 +100,7 @@ fun Z.test() {
Z.<set-counter>(<set-?> = 1)
Z.foo()
}
fun withLambda(f: Function0<Unit>) {
}