K2: introduce platform-specific visibility checks for overrides + tests
Related to KT-53197
This commit is contained in:
Generated
+12
@@ -33962,6 +33962,18 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/lackOfInvisibleSetterOfJavaClassInSamePackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notOverridingInternal.kt")
|
||||
public void testNotOverridingInternal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/notOverridingInternal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notOverridingPackagePrivate.kt")
|
||||
public void testNotOverridingPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/notOverridingPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideOfMemberInPackagePrivateClass.kt")
|
||||
public void testOverrideOfMemberInPackagePrivateClass() throws Exception {
|
||||
|
||||
Generated
+6
@@ -2596,6 +2596,12 @@ public class IrTextTestGenerated extends AbstractIrTextTest {
|
||||
runTest("compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalPotentialOverride.kt")
|
||||
public void testInternalPotentialOverride() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/internalPotentialOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt19251.kt")
|
||||
public void testKt19251() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user