Report INVISIBLE_MEMBER on private class object usage

This commit is contained in:
Alexander Udalov
2013-10-18 17:28:27 +04:00
parent 94deb21551
commit 57aa355b05
5 changed files with 90 additions and 2 deletions
@@ -0,0 +1,15 @@
class A {
private class object {
class B {
class C {
class object {
fun foo() {}
}
}
}
}
}
fun f1() = <!INVISIBLE_MEMBER!>A<!>.B.C
fun f2() = <!INVISIBLE_MEMBER!>A<!>.B.C.<!INVISIBLE_MEMBER!>foo<!>()