Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/inheritance/nestedVsToplevelClass.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

39 lines
592 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion
class X {
fun T_X() {}
}
class Y {
fun T_Y() {}
}
open class A {
class X {
fun A_X() {}
}
companion object {
class Y {
fun A_C_Y() {}
}
}
init {
X().A_X()
X().<!UNRESOLVED_REFERENCE!>T_X<!>()
Y().A_C_Y()
Y().<!UNRESOLVED_REFERENCE!>T_Y<!>()
}
}
class B: A() {
init {
X().A_X()
X().<!UNRESOLVED_REFERENCE!>T_X<!>()
Y().<!UNRESOLVED_REFERENCE!>A_C_Y<!>()
Y().T_Y()
}
}