[FE 1.0] Implement deprecation warning for private constructors of sealed classes

^KT-44866
^KT-49729 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-11-16 17:21:47 +03:00
parent 93378b1a04
commit da02d25278
18 changed files with 277 additions and 4 deletions
@@ -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 {