Files
kotlin/compiler/testData/diagnostics/tests/classObjects/nestedClassInPrivateClassObject.kt
Alexander Udalov c2598faa4e Fix class object visibility check
ExpressionTypingContext now has a scope for visibility checking, which isn't
replaced on replaceScope()
2013-12-02 19:56:15 +04:00

16 lines
348 B
Kotlin

class A {
private class object {
class B {
class C {
class object {
fun foo() {}
}
}
}
}
}
fun f1() = <!INVISIBLE_MEMBER!>A<!>.B.<!INVISIBLE_MEMBER!>C<!>
fun f2() = <!INVISIBLE_MEMBER!>A<!>.B.<!INVISIBLE_MEMBER!>C<!>.<!INVISIBLE_MEMBER!>foo<!>()