mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +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.
15 lines
278 B
Kotlin
15 lines
278 B
Kotlin
class A {
|
|
private class object {
|
|
class B {
|
|
class C {
|
|
class object {
|
|
fun foo() {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun f1() = A.B.<!INVISIBLE_MEMBER!>C<!>
|
|
|
|
fun f2() = A.B.C.<!INVISIBLE_MEMBER!>foo<!>() |