Files
kotlin-fork/compiler/testData/diagnostics/tests/multimodule/publishedApiInternal.fir.kt
T
pyos e6d923f65c FIR: rename HIDDEN to INVISIBLE_REFERENCE
Some of them should be INVISIBLE_MEMBER though
2021-04-21 16:18:21 +03:00

57 lines
1.2 KiB
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VARIABLE -NOTHING_TO_INLINE
// MODULE: m1
// FILE: a.kt
package p
public class A {
@PublishedApi
internal val a = A()
@PublishedApi
internal var v = A()
@PublishedApi
internal fun a() = A()
@PublishedApi
internal inner class B
}
@PublishedApi
internal val a = A()
@PublishedApi
internal var v = A()
@PublishedApi
internal fun a() = A()
@PublishedApi
internal class B
// MODULE: m2(m1)
// FILE: b.kt
import p.*
fun test() {
val _a = <!INVISIBLE_REFERENCE!>a<!>
val _v = <!INVISIBLE_REFERENCE!>v<!>
<!INVISIBLE_REFERENCE!>a<!>()
<!INVISIBLE_REFERENCE!>B<!>()
val inst = A()
val ia = inst.<!INVISIBLE_REFERENCE!>a<!>
val iv = inst.<!INVISIBLE_REFERENCE!>v<!>
inst.<!INVISIBLE_REFERENCE!>a<!>()
inst.<!INVISIBLE_REFERENCE!>B<!>()
}
inline fun testInline() {
val _a = <!INVISIBLE_REFERENCE!>a<!>
val _v = <!INVISIBLE_REFERENCE!>v<!>
<!INVISIBLE_REFERENCE!>a<!>()
<!INVISIBLE_REFERENCE!>B<!>()
val inst = A()
val ia = inst.<!INVISIBLE_REFERENCE!>a<!>
val iv = inst.<!INVISIBLE_REFERENCE!>v<!>
inst.<!INVISIBLE_REFERENCE!>a<!>()
inst.<!INVISIBLE_REFERENCE!>B<!>()
}