[IR][tests] Rename top-level declarations in visibility-related tests to distinguish them from nested declarations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
public fun publicToInternalFunction() = 42
|
||||
public fun publicToPrivateFunction() = 42
|
||||
public fun publicToInternalTopLevelFunction() = 42
|
||||
public fun publicToPrivateTopLevelFunction() = 42
|
||||
|
||||
open class Container {
|
||||
public fun publicToProtectedFunction() = 42
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
internal fun publicToInternalFunction() = 42
|
||||
private fun publicToPrivateFunction() = 42
|
||||
internal fun publicToInternalTopLevelFunction() = 42
|
||||
private fun publicToPrivateTopLevelFunction() = 42
|
||||
|
||||
open class Container {
|
||||
protected fun publicToProtectedFunction() = 42
|
||||
|
||||
@@ -2,8 +2,8 @@ import abitestutils.abiTest
|
||||
|
||||
fun box() = abiTest {
|
||||
val c = ContainerImpl()
|
||||
expectSuccess(42) { publicToInternalFunction() }
|
||||
expectFailure(prefixed("function publicToPrivateFunction can not be called")) { publicToPrivateFunction() }
|
||||
expectSuccess(42) { publicToInternalTopLevelFunction() }
|
||||
expectFailure(prefixed("function publicToPrivateTopLevelFunction can not be called")) { publicToPrivateTopLevelFunction() }
|
||||
expectSuccess(42) { c.publicToProtectedFunction() }
|
||||
expectFailure(prefixed("function publicToInternalFunction can not be called")) { c.publicToInternalFunction() }
|
||||
expectFailure(prefixed("function publicToPrivateFunction can not be called")) { c.publicToPrivateFunction() }
|
||||
|
||||
Reference in New Issue
Block a user