JVM_IR KT-45431 don't optimize out $$delegatedProperties in companion

Corresponding delegates are initialized in the host class, using
'$$delegatedProperties'.
TODO figure out proper code generation scheme for delegated properties
in companions (KT-45580)
This commit is contained in:
Dmitry Petrov
2021-03-19 15:13:47 +03:00
committed by TeamCityServer
parent f6baabd98e
commit 73d4fa65ea
14 changed files with 239 additions and 2 deletions
@@ -80,6 +80,11 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
runTest("compiler/testData/codegen/bytecodeListing/defaultImpls.kt");
}
@TestMetadata("delegatedPropertiesInCompanionObject.kt")
public void testDelegatedPropertiesInCompanionObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/delegatedPropertiesInCompanionObject.kt");
}
@TestMetadata("delegationToJavaInterfaceWithWildcardType.kt")
public void testDelegationToJavaInterfaceWithWildcardType() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt");