Don't check class object visibility when it's in qualifier position

(visibility for member is checked anyway).
It might be better to underline invisible qualifier in a chain (class or class object), not the last one (member) - for later improvement.
This commit is contained in:
Svetlana Isakova
2014-08-23 16:09:35 +04:00
parent 3767187027
commit 132c292d32
4 changed files with 14 additions and 21 deletions
@@ -3,8 +3,9 @@ package foo
fun test() {
A.d
A.<!INVISIBLE_MEMBER!>f<!>
B.<!INVISIBLE_MEMBER!>D<!>
<!INVISIBLE_MEMBER!>CCC<!>
<!INVISIBLE_MEMBER!>CCC<!>.<!INVISIBLE_MEMBER!>classObjectVar<!>
CCC.<!INVISIBLE_MEMBER!>classObjectVar<!>
}
class A() {
@@ -16,6 +17,12 @@ class A() {
}
}
class B {
class D {
private class object
}
}
class CCC() {
private class object {
val classObjectVar = 3