Fix property lookup in data class component generation

#KT-49812 Fixed
 #KT-49936 Fixed
This commit is contained in:
Alexander Udalov
2021-11-26 23:17:39 +01:00
parent 2fbd2e2a15
commit be6409f0af
17 changed files with 414 additions and 3 deletions
@@ -12932,6 +12932,29 @@ public class NativeExtBlackBoxTestGenerated extends AbstractNativeBlackBoxTest {
runTest("compiler/testData/codegen/box/dataClasses/unitComponent.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/dataClasses/components")
@TestDataPath("$PROJECT_ROOT")
@NativeBlackBoxTestCaseGroupProvider(ExtTestCaseGroupProvider.class)
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, 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")