mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Design decision: if the field for a companion object should have non-public visibility, generate it with @Deprecated annotation in language version 1.2. TODO: generate it with proper visibility in 1.3 and later. KT-11567 Companion object INSTANCE field more visible than companion object class itself
13 lines
233 B
Kotlin
Vendored
13 lines
233 B
Kotlin
Vendored
// LANGUAGE_VERSION: 1.1
|
|
|
|
class TestPrivateCompanion {
|
|
private companion object Test
|
|
}
|
|
|
|
open class TestProtectedCompanion {
|
|
protected companion object Test
|
|
}
|
|
|
|
class TestInternalCompanion {
|
|
internal companion object Test
|
|
} |