[FIR] Correctly determine primary constructor parameters scope for class initialization section

^KT-58135 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-04-26 17:35:59 +03:00
committed by Space Team
parent 7ee648a4f5
commit 913b55174d
7 changed files with 65 additions and 9 deletions
@@ -5770,6 +5770,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/constructorConsistency/outer.kt");
}
@Test
@TestMetadata("parametersVsPropertiesFromPrimaryConstructor.kt")
public void testParametersVsPropertiesFromPrimaryConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/constructorConsistency/parametersVsPropertiesFromPrimaryConstructor.kt");
}
@Test
@TestMetadata("property.kt")
public void testProperty() throws Exception {
@@ -5770,6 +5770,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/constructorConsistency/outer.kt");
}
@Test
@TestMetadata("parametersVsPropertiesFromPrimaryConstructor.kt")
public void testParametersVsPropertiesFromPrimaryConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/constructorConsistency/parametersVsPropertiesFromPrimaryConstructor.kt");
}
@Test
@TestMetadata("property.kt")
public void testProperty() throws Exception {