mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
(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.
30 lines
386 B
Kotlin
30 lines
386 B
Kotlin
package foo
|
|
|
|
fun test() {
|
|
A.d
|
|
A.<!INVISIBLE_MEMBER!>f<!>
|
|
B.<!INVISIBLE_MEMBER!>D<!>
|
|
<!INVISIBLE_MEMBER!>CCC<!>
|
|
CCC.<!INVISIBLE_MEMBER!>classObjectVar<!>
|
|
}
|
|
|
|
class A() {
|
|
public class object {
|
|
val d = 3
|
|
private object f {
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
class B {
|
|
class D {
|
|
private class object
|
|
}
|
|
}
|
|
|
|
class CCC() {
|
|
private class object {
|
|
val classObjectVar = 3
|
|
}
|
|
} |