[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
+13 -1
View File
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
object Z {
var counter = 0
fun foo() {}
@@ -25,6 +26,15 @@ object Z {
}
}
fun aFun() {
withLambda {
counter = 1
foo()
Z.counter = 1
Z.foo()
}
}
val aLambda = {
counter = 1
foo()
@@ -54,4 +64,6 @@ fun Z.test() {
foo()
Z.counter = 1
Z.foo()
}
}
fun withLambda(f: () -> Unit) {}