Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/nonPublicMember/inPackage.kt
T
2015-09-08 02:04:32 +03:00

27 lines
653 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE
private val privateProperty = 11;
private fun privateFun() {}
internal val internalProperty = 11;
internal fun internalFun() {}
public inline fun test() {
<!INVISIBLE_MEMBER_FROM_INLINE!>privateFun<!>()
<!INVISIBLE_MEMBER_FROM_INLINE!>privateProperty<!>
}
public inline fun test2() {
<!INVISIBLE_MEMBER_FROM_INLINE!>internalFun<!>()
<!INVISIBLE_MEMBER_FROM_INLINE!>internalProperty<!>
}
internal inline fun testInternal() {
privateFun()
privateProperty
}
internal inline fun test2Internal() {
internalFun()
internalProperty
}