JVM_IR: KT-40330 Unify field names for captured 'this' with JVM

NB some cases such as captured extension receiver for an extension
lambda are not supported yet; to be discussed, to what extent should we
actually follow JVM code shape here.
This commit is contained in:
Dmitry Petrov
2020-08-18 15:26:36 +03:00
parent 24bfc155af
commit 8f0aecce58
16 changed files with 371 additions and 22 deletions

View File

@@ -0,0 +1,26 @@
class Foo {
fun foo() {}
}
class Bar {
fun bar() {}
}
fun Foo.test(bar: Bar) {
fun Bar.test() {
class Local {
fun run() {
foo()
bar()
}
}
}
}
// JVM_TEMPLATES
// 1 final synthetic LMultipleExtensionReceiversKt\$test\$1; this\$0
// 1 final synthetic LBar; \$this_test
// JVM_IR_TEMPLATES
// 1 private final synthetic LFoo; \$this_test
// 1 private final synthetic LBar; \$this_test\$1