[FE 1.0] Implement deprecation warning for private constructors of sealed classes
^KT-44866 ^KT-49729 Fixed
This commit is contained in:
+12
@@ -26407,6 +26407,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/sealed/OperationWhen.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateSealedConstructors_error.kt")
|
||||
public void testPrivateSealedConstructors_error() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/sealed/privateSealedConstructors_error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateSealedConstructors_warning.kt")
|
||||
public void testPrivateSealedConstructors_warning() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/sealed/privateSealedConstructors_warning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateTypeInConstructor.kt")
|
||||
public void testPrivateTypeInConstructor() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user