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
@@ -10,6 +10,6 @@ class A {
}
}
fun f1() = <!INVISIBLE_MEMBER!>A<!>.B.<!INVISIBLE_MEMBER!>C<!>
fun f1() = A.B.<!INVISIBLE_MEMBER!>C<!>
fun f2() = <!INVISIBLE_MEMBER!>A<!>.B.<!INVISIBLE_MEMBER!>C<!>.<!INVISIBLE_MEMBER!>foo<!>()
fun f2() = A.B.C.<!INVISIBLE_MEMBER!>foo<!>()