Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/visibility/singletonConstructors.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

32 lines
385 B
Kotlin
Vendored

class A {
companion object Comp {}
fun foo() {
<!INVISIBLE_REFERENCE!>Comp<!>()
}
}
object B {
private val x = <!INVISIBLE_REFERENCE!>B<!>()
}
class D {
companion object Comp2 {
operator fun invoke() {}
}
fun foo() {
Comp2()
}
}
enum class E {
X {
};
fun foo() {
<!UNRESOLVED_REFERENCE!>X<!>()
}
}