Introduce warning for secondary constructor in enums without delegation to primary constructors (KT-35870)
This commit is contained in:
+10
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user