e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
49 lines
814 B
Kotlin
Vendored
49 lines
814 B
Kotlin
Vendored
// !DIAGNOSTICS: -EXPOSED_PARAMETER_TYPE -NOTHING_TO_INLINE
|
|
|
|
|
|
inline fun call(a: A) {
|
|
a.<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>test<!>()
|
|
|
|
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>privateFun<!>()
|
|
|
|
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>internalFun<!>()
|
|
}
|
|
|
|
@PublishedApi
|
|
internal inline fun callFromPublishedApi(a: A) {
|
|
a.<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>test<!>()
|
|
|
|
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>privateFun<!>()
|
|
|
|
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>internalFun<!>()
|
|
}
|
|
|
|
internal class A {
|
|
@PublishedApi
|
|
internal fun test() {
|
|
test()
|
|
|
|
privateFun()
|
|
|
|
internalFun()
|
|
}
|
|
|
|
@PublishedApi
|
|
internal fun testInline() {
|
|
test()
|
|
|
|
privateFun()
|
|
|
|
internalFun()
|
|
}
|
|
}
|
|
|
|
|
|
private fun privateFun() {
|
|
|
|
}
|
|
|
|
internal fun internalFun() {
|
|
|
|
}
|