[FE] Allow declaring protected constructors in sealed classes
#KT-44865 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
f3a8fcaea6
commit
7c61ddc72b
+12
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user