[FE] Assume that effective visibility of sealed class constructor is internal

#KT-45033 Fixed
#KT-45043
This commit is contained in:
Dmitriy Novozhilov
2021-02-18 18:10:15 +03:00
committed by TeamCityServer
parent b08eb6cf4c
commit 88c43e7f7b
9 changed files with 121 additions and 1 deletions
@@ -24313,6 +24313,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/sealed/inheritorInDifferentModule.kt");
}
@Test
@TestMetadata("internalTypeInConstructor.kt")
public void testInternalTypeInConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/sealed/internalTypeInConstructor.kt");
}
@Test
@TestMetadata("kt44316.kt")
public void testKt44316() throws Exception {
@@ -24433,6 +24439,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/sealed/OperationWhen.kt");
}
@Test
@TestMetadata("privateTypeInConstructor.kt")
public void testPrivateTypeInConstructor() throws Exception {
runTest("compiler/testData/diagnostics/tests/sealed/privateTypeInConstructor.kt");
}
@Test
@TestMetadata("protectedConstructors_disabled.kt")
public void testProtectedConstructors_disabled() throws Exception {