[FE] Allow declaring protected constructors in sealed classes

#KT-44865 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-02-11 11:57:02 +03:00
committed by TeamCityServer
parent f3a8fcaea6
commit 7c61ddc72b
13 changed files with 447 additions and 8 deletions
@@ -24511,6 +24511,18 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/sealed/OperationWhen.kt");
}
@Test
@TestMetadata("protectedConstructors_disabled.kt")
public void testProtectedConstructors_disabled() throws Exception {
runTest("compiler/testData/diagnostics/tests/sealed/protectedConstructors_disabled.kt");
}
@Test
@TestMetadata("protectedConstructors_enabled.kt")
public void testProtectedConstructors_enabled() throws Exception {
runTest("compiler/testData/diagnostics/tests/sealed/protectedConstructors_enabled.kt");
}
@Test
@TestMetadata("RedundantAbstract.kt")
public void testRedundantAbstract() throws Exception {