Introduce warning for secondary constructor in enums without delegation to primary constructors (KT-35870)

This commit is contained in:
Victor Petukhov
2020-09-25 11:50:35 +03:00
parent 416874f9d0
commit 63d825fa24
13 changed files with 626 additions and 15 deletions
@@ -7612,6 +7612,16 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
runTest("compiler/testData/diagnostics/tests/enum/SecondaryConstructorCall.kt");
}
@TestMetadata("secondaryConstructorWithoutDelegatingToPrimaryOne.kt")
public void testSecondaryConstructorWithoutDelegatingToPrimaryOne() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/secondaryConstructorWithoutDelegatingToPrimaryOne.kt");
}
@TestMetadata("secondaryConstructorWithoutDelegatingToPrimaryOneWithEnabledFeature.kt")
public void testSecondaryConstructorWithoutDelegatingToPrimaryOneWithEnabledFeature() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/secondaryConstructorWithoutDelegatingToPrimaryOneWithEnabledFeature.kt");
}
@TestMetadata("starImportNestedClassAndEntries.kt")
public void testStarImportNestedClassAndEntries() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/starImportNestedClassAndEntries.kt");