[IR][tests] New test: change of visibility for callables

This commit is contained in:
Dmitriy Dolovov
2022-08-22 15:59:09 +02:00
parent 8374b2da85
commit 3569ec7666
19 changed files with 523 additions and 0 deletions
@@ -0,0 +1,11 @@
class ContainerImpl : Container() {
// Just to check that accessing from within the class hierarchy has the same effect as accessing from the outside:
fun publicToProtectedFunctionAccess() = publicToProtectedFunction()
fun publicToInternalFunctionAccess() = publicToInternalFunction()
fun publicToPrivateFunctionAccess() = publicToPrivateFunction()
// As far as protected members can't be accessed outside of the class hierarchy, we need special accessors.
fun protectedToPublicFunctionAccess() = protectedToPublicFunction()
fun protectedToInternalFunctionAccess() = protectedToInternalFunction()
fun protectedToPrivateFunctionAccess() = protectedToPrivateFunction()
}
@@ -0,0 +1,2 @@
STEP 0:
dependencies: stdlib, lib1