Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/inheritance/nestedCompanionClass.fir.kt
T

40 lines
701 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion
open class A {
companion object {
class B
}
}
class C: A() {
val b: <!UNRESOLVED_REFERENCE!>B<!> = null!!
init {
<!UNRESOLVED_REFERENCE!>B<!>()
}
object O {
val b: <!UNRESOLVED_REFERENCE!>B<!> = null!!
init {
<!UNRESOLVED_REFERENCE!>B<!>()
}
}
class K {
val b: <!UNRESOLVED_REFERENCE!>B<!> = null!!
init {
<!UNRESOLVED_REFERENCE!>B<!>()
}
}
inner class I {
val b: <!UNRESOLVED_REFERENCE!>B<!> = null!!
init {
<!UNRESOLVED_REFERENCE!>B<!>()
}
}
}