[FIR] Generate java declarations for record components of java records
^KT-53964 Fixed
This commit is contained in:
+2
-2
@@ -180,7 +180,7 @@ internal class KtFirScopeProvider(
|
||||
return KtCompositeTypeScope(
|
||||
listOfNotNull(
|
||||
convertToKtTypeScope(firTypeScope),
|
||||
FirSyntheticPropertiesScope.createIfSyntheticNamesProviderIsDefined(firSession, firTypeScope)?.let { convertToKtTypeScope(it) }
|
||||
FirSyntheticPropertiesScope.createIfSyntheticNamesProviderIsDefined(firSession, type.coneType, firTypeScope)?.let { convertToKtTypeScope(it) }
|
||||
),
|
||||
token
|
||||
)
|
||||
@@ -278,4 +278,4 @@ private class EnumEntryContainingNamesAwareScope(private val originalScope: FirC
|
||||
override fun processDeclaredConstructors(processor: (FirConstructorSymbol) -> Unit) {
|
||||
// enum entries does not have constructors
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+12
@@ -32013,6 +32013,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/irrelevantFields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaRecordWithExplicitComponent.kt")
|
||||
public void testJavaRecordWithExplicitComponent() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/javaRecordWithExplicitComponent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaRecordWithGeneric.kt")
|
||||
public void testJavaRecordWithGeneric() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/testsWithJava17/jvmRecord/javaRecordWithGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmRecordDescriptorStructure.kt")
|
||||
public void testJvmRecordDescriptorStructure() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user