mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
The fqname of class should be clear from code Example: can't shorten A.Default.B.Default.C to A.B.C Also fixes problem when nested class of enum class could be accessed via enum entry
15 lines
294 B
Kotlin
15 lines
294 B
Kotlin
class A {
|
|
private class object {
|
|
class B {
|
|
class C {
|
|
class object {
|
|
fun foo() {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun f1() = A.Default.B.<!INVISIBLE_MEMBER!>C<!>
|
|
|
|
fun f2() = A.Default.B.C.<!INVISIBLE_MEMBER!>foo<!>() |