mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
Effective visibility mechanism introduced. Local is considered as public, java protected as Kotlin protected, java package private as Kotlin private.
15 lines
341 B
Kotlin
Vendored
15 lines
341 B
Kotlin
Vendored
class A {
|
|
private companion object {
|
|
class B {
|
|
class C {
|
|
companion object {
|
|
fun foo() {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>f1<!>() = A.Companion.B.<!INVISIBLE_MEMBER!>C<!>
|
|
|
|
fun f2() = A.Companion.B.C.<!INVISIBLE_MEMBER!>foo<!>() |