FIR: use default getter in serializer if fir contains none

since we generate the default getter in this case in
Fir2IrDeclarationStorage.createIrProperty, so the serialized metadata
should follow the same behavior.
#KT-57373 fixed
This commit is contained in:
Ilya Chernikov
2023-03-24 15:42:48 +01:00
committed by Space Team
parent 913b55174d
commit a045a0a81c
22 changed files with 227 additions and 2 deletions
@@ -13138,6 +13138,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule.kt");
}
@Test
@TestMetadata("delegationDifferentModule2.kt")
public void testDelegationDifferentModule2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt");
}
@Test
@TestMetadata("delegationToIntersectionType.kt")
public void testDelegationToIntersectionType() throws Exception {
@@ -13436,6 +13436,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule.kt");
}
@Test
@TestMetadata("delegationDifferentModule2.kt")
public void testDelegationDifferentModule2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt");
}
@Test
@TestMetadata("delegationToIntersectionType.kt")
public void testDelegationToIntersectionType() throws Exception {
@@ -12989,6 +12989,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule.kt");
}
@Test
@TestMetadata("delegationDifferentModule2.kt")
public void testDelegationDifferentModule2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt");
}
@Test
@TestMetadata("delegationToIntersectionType.kt")
public void testDelegationToIntersectionType() throws Exception {
@@ -13287,6 +13287,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule.kt");
}
@Test
@TestMetadata("delegationDifferentModule2.kt")
public void testDelegationDifferentModule2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt");
}
@Test
@TestMetadata("delegationToIntersectionType.kt")
public void testDelegationToIntersectionType() throws Exception {