Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/inheritance/nestedCompanionClass.fir.kt
T
Denis Zharkov f71a56e742 FIR: Fix test data after rewritten scope structure
Mostly, the semantics for statics/companions has been changed there
Fixed test data now is much closer to semantics of old FE
2020-05-15 16:04:44 +03:00

40 lines
593 B
Kotlin
Vendored

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