[IR][tests] Add cases to visibility-related tests where a callable accidentally starts to override newly added open callable in super class

^KT-53608
This commit is contained in:
Dmitriy Dolovov
2022-09-13 19:03:45 +02:00
parent ec4b85b111
commit cd007c02df
8 changed files with 175 additions and 0 deletions
@@ -19,4 +19,11 @@ fun box() = abiTest {
expectSuccess("ContainerImpl.protectedToPublicOverriddenFunction") { c.protectedToPublicOverriddenFunctionAccess() }
expectSuccess("ContainerImpl.protectedToInternalOverriddenFunction") { c.protectedToInternalOverriddenFunctionAccess() }
expectSuccess("ContainerImpl.protectedToPrivateOverriddenFunction") { c.protectedToPrivateOverriddenFunctionAccess() }
expectSuccess("ContainerImpl.newPublicFunction") { c.newPublicFunction() }
expectSuccess("ContainerImpl.newOpenPublicFunction") { c.newOpenPublicFunction() }
expectSuccess("ContainerImpl.newProtectedFunction") { c.newProtectedFunctionAccess() }
expectSuccess("ContainerImpl.newOpenProtectedFunction") { c.newOpenProtectedFunctionAccess() }
expectSuccess("ContainerImpl.newInternalFunction") { c.newInternalFunctionAccess() }
expectSuccess("ContainerImpl.newOpenInternalFunction") { c.newOpenInternalFunctionAccess() }
expectSuccess("ContainerImpl.newPrivateFunction") { c.newPrivateFunctionAccess() }
}