mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
30 lines
345 B
Kotlin
Vendored
30 lines
345 B
Kotlin
Vendored
package foo
|
|
|
|
fun test() {
|
|
A.d
|
|
A.Companion.<!INAPPLICABLE_CANDIDATE!>f<!>
|
|
B.D
|
|
CCC
|
|
CCC.classObjectVar
|
|
}
|
|
|
|
class A() {
|
|
public companion object {
|
|
val d = 3
|
|
private object f {
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
class B {
|
|
class D {
|
|
private companion object
|
|
}
|
|
}
|
|
|
|
class CCC() {
|
|
private companion object {
|
|
val classObjectVar = 3
|
|
}
|
|
} |