Introduce warning for secondary constructor in enums without delegation to primary constructors (KT-35870)
This commit is contained in:
@@ -7619,6 +7619,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
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");
|
||||
|
||||
Generated
+10
@@ -7614,6 +7614,16 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
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