[Test] Extract test for EXPECTED_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER

...to separate file. Also, add 3 cases with true-negative reporting:
annotation class, value class and secondary constructor.

^KT-59982
This commit is contained in:
Roman Efremov
2023-09-15 17:28:31 +02:00
committed by Space Team
parent 489371219f
commit 5623427c6d
8 changed files with 49 additions and 10 deletions
@@ -1320,6 +1320,12 @@ public class FirOldFrontendMPPDiagnosticsWithLightTreeTestGenerated extends Abst
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/expectFunInterface.kt");
}
@Test
@TestMetadata("expectedClassConstructorPropertyParameters.kt")
public void testExpectedClassConstructorPropertyParameters() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/expectedClassConstructorPropertyParameters.kt");
}
@Test
@TestMetadata("explicitConstructorDelegation.kt")
public void testExplicitConstructorDelegation() throws Exception {
@@ -1320,6 +1320,12 @@ public class FirOldFrontendMPPDiagnosticsWithPsiTestGenerated extends AbstractFi
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/expectFunInterface.kt");
}
@Test
@TestMetadata("expectedClassConstructorPropertyParameters.kt")
public void testExpectedClassConstructorPropertyParameters() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/headerClass/expectedClassConstructorPropertyParameters.kt");
}
@Test
@TestMetadata("explicitConstructorDelegation.kt")
public void testExplicitConstructorDelegation() throws Exception {