KT-27936 Generate InnerClasses attributes

This commit is contained in:
Pavel Mikhailovskii
2022-08-23 00:05:43 +02:00
committed by teamcity
parent 4a8eec8166
commit 18e61315f4
131 changed files with 1525 additions and 271 deletions
@@ -9,4 +9,9 @@ fun box(): String {
return x
}
// JVM_TEMPLATES
// 0 ObjectRef
// JVM_IR_TEMPLATES
// 2 ObjectRef
// 1 INNERCLASS kotlin.jvm.internal.Ref\$ObjectRef kotlin.jvm.internal.Ref ObjectRef
@@ -1,5 +1,10 @@
fun f() = IntArray(1) { run { return@IntArray 1 } }
// On JVM_IR, the return is an assignment to a captured var followed by
// a non-local `break` from a `do ... while (false)`. The var should be optimized.
// JVM_TEMPLATES
// 0 IntRef
// On JVM_IR, the return is an assignment to a captured var followed by
// a non-local `break` from a `do ... while (false)`. The var should be optimized, but InnerClasses attribute will be added anyway.
// JVM_IR_TEMPLATES
// 2 IntRef
// 1 INNERCLASS kotlin.jvm.internal.Ref\$IntRef kotlin.jvm.internal.Ref IntRef