Fix property lookup in data class component generation
#KT-49812 Fixed #KT-49936 Fixed
This commit is contained in:
+22
@@ -12794,6 +12794,28 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/dataClasses/unitComponent.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/dataClasses/components")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Components {
|
||||
@Test
|
||||
public void testAllFilesPresentInComponents() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/components"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49812.kt")
|
||||
public void testKt49812() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/dataClasses/components/kt49812.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49936.kt")
|
||||
public void testKt49936() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/dataClasses/components/kt49936.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/dataClasses/copy")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Generated
+6
@@ -343,6 +343,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
|
||||
runTest("compiler/testData/ir/irText/classes/dataClasses/kt31649.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49936.kt")
|
||||
public void testKt49936() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/classes/dataClasses/kt49936.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaInDataClassDefaultParameter.kt")
|
||||
public void testLambdaInDataClassDefaultParameter() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user