Old JVM: support init blocks in inline classes

#KT-28055 Fixed
This commit is contained in:
Ilmir Usmanov
2020-10-28 20:04:59 +01:00
parent 999604541e
commit 28e148d35a
4 changed files with 17 additions and 9 deletions
@@ -13,8 +13,18 @@ inline class UInt(val a: Int) {
fun takeNullable(a: UInt?) {}
// 2 INVOKESTATIC UInt\.box
// 0 INVOKEVIRTUAL Foo.unbox
// 1 valueOf
// 0 intValue
// 0 intValue
// JVM_TEMPLATES:
// 2 INVOKESTATIC UInt\.box
// -- equals-impl
// 1 INVOKEVIRTUAL UInt\.unbox
// JVM_IR_TEMPLATES:
// -- 1 before takeNullable
// -- 1 before takeAnyInside
// -- 1 before takeAnyInside's GETFIELD
// 3 INVOKESTATIC UInt\.box
// -- getA, toString, hashCode, equals-impl, equals
// 5 INVOKEVIRTUAL UInt\.unbox