[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() }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
public val publicToInternalProperty1 = 42
|
||||
public val publicToInternalProperty2 get() = 42
|
||||
public val publicToPrivateProperty1 = 42
|
||||
public val publicToPrivateProperty2 get() = 42
|
||||
public val publicToInternalTopLevelProperty1 = 42
|
||||
public val publicToInternalTopLevelProperty2 get() = 42
|
||||
public val publicToPrivateTopLevelProperty1 = 42
|
||||
public val publicToPrivateTopLevelProperty2 get() = 42
|
||||
|
||||
open class Container {
|
||||
public val publicToProtectedProperty1 = 42
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
internal val publicToInternalProperty1 = 42
|
||||
internal val publicToInternalProperty2 get() = 42
|
||||
private val publicToPrivateProperty1 = 42
|
||||
private val publicToPrivateProperty2 get() = 42
|
||||
internal val publicToInternalTopLevelProperty1 = 42
|
||||
internal val publicToInternalTopLevelProperty2 get() = 42
|
||||
private val publicToPrivateTopLevelProperty1 = 42
|
||||
private val publicToPrivateTopLevelProperty2 get() = 42
|
||||
|
||||
open class Container {
|
||||
protected val publicToProtectedProperty1 = 42
|
||||
|
||||
@@ -2,10 +2,10 @@ import abitestutils.abiTest
|
||||
|
||||
fun box() = abiTest {
|
||||
val c = ContainerImpl()
|
||||
expectSuccess(42) { publicToInternalProperty1 }
|
||||
expectSuccess(42) { publicToInternalProperty2 }
|
||||
expectFailure(prefixed("property accessor publicToPrivateProperty1.<get-publicToPrivateProperty1> can not be called")) { publicToPrivateProperty1 }
|
||||
expectFailure(prefixed("property accessor publicToPrivateProperty2.<get-publicToPrivateProperty2> can not be called")) { publicToPrivateProperty2 }
|
||||
expectSuccess(42) { publicToInternalTopLevelProperty1 }
|
||||
expectSuccess(42) { publicToInternalTopLevelProperty2 }
|
||||
expectFailure(prefixed("property accessor publicToPrivateTopLevelProperty1.<get-publicToPrivateTopLevelProperty1> can not be called")) { publicToPrivateTopLevelProperty1 }
|
||||
expectFailure(prefixed("property accessor publicToPrivateTopLevelProperty2.<get-publicToPrivateTopLevelProperty2> can not be called")) { publicToPrivateTopLevelProperty2 }
|
||||
expectSuccess(42) { c.publicToProtectedProperty1 }
|
||||
expectSuccess(42) { c.publicToProtectedProperty2 }
|
||||
expectFailure(prefixed("property accessor publicToInternalProperty1.<get-publicToInternalProperty1> can not be called")) { c.publicToInternalProperty1 }
|
||||
|
||||
Reference in New Issue
Block a user