Add ClassDescriptor.getInlineClassRepresentation
This will be used at least in the JVM backend instead of the current approach where we're loading the primary constructor's first parameter, which isn't good enough since primary constructor can be private, and we can't rely on private declarations in case they're declared in another module.
This commit is contained in:
+12
@@ -6731,6 +6731,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertyWithSameName.kt")
|
||||
public void testExtensionPropertyWithSameName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/extensionPropertyWithSameName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("funInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
@@ -6824,6 +6830,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertyWithSameName.kt")
|
||||
public void testExtensionPropertyWithSameName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/extensionPropertyWithSameName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user