Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/nonPublicMember/inPackage.kt
T
Mikhael Bogdanov d11311ec20 Test compilation fix
2013-12-02 18:30:42 +04:00

27 lines
617 B
Kotlin

// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE
private val privateProperty = 11;
private fun privateFun() {}
val internalProperty = 11;
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<!>
}
inline fun testInternal() {
privateFun()
privateProperty
}
inline fun test2Internal() {
internalFun()
internalProperty
}