[FIR] Properly support @JvmRecord
^KT-53867 Fixed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user