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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user