Inline visibility checking

This commit is contained in:
Mikhael Bogdanov
2013-11-18 15:08:05 +04:00
parent c89c465fec
commit 558687f20f
7 changed files with 223 additions and 7 deletions
@@ -0,0 +1,27 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
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
}