Files
kotlin-fork/compiler/testData/diagnostics/tests/multimodule/internal.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

36 lines
681 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VARIABLE
// MODULE: m1
// FILE: a.kt
package p
public class A {
internal val a = A()
internal var v = A()
internal fun a() = A()
internal inner class B
}
internal val a = A()
internal var v = A()
internal fun a() = A()
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<!>()
}