[FIR] Properly support @JvmRecord

^KT-53867 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-09-19 14:52:39 +03:00
parent c0ad67c4f9
commit 6623456d2a
23 changed files with 490 additions and 29 deletions
+1 -10
View File
@@ -39,20 +39,11 @@ dependencies {
optInToExperimentalCompilerApi()
val generationRoot = projectDir.resolve("tests-gen")
sourceSets {
"main" { none() }
"test" {
projectDefault()
this.java.srcDir(generationRoot.name)
}
}
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
apply(plugin = "idea")
idea {
this.module.generatedSourceDirs.add(generationRoot)
generatedTestDir()
}
}
@@ -951,6 +951,12 @@ public class IrTextTestGenerated extends AbstractIrTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/jvmRecord"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("dataClassWithJvmRecord.kt")
public void testDataClassWithJvmRecord() throws Exception {
runTest("compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.kt");
}
@Test
@TestMetadata("javaRecordComponentAccess.kt")
public void testJavaRecordComponentAccess() throws Exception {