25 lines
415 B
Kotlin
Vendored
25 lines
415 B
Kotlin
Vendored
// SKIP_TXT
|
|
open class BaseWithPrivate {
|
|
private companion object {
|
|
val X: Int = 1
|
|
val Y: Int = 1
|
|
}
|
|
}
|
|
|
|
open class Base {
|
|
companion object {
|
|
val X: String = ""
|
|
}
|
|
}
|
|
|
|
class Derived : Base() {
|
|
fun foo() {
|
|
object : BaseWithPrivate() {
|
|
fun bar() {
|
|
X.length
|
|
<!INVISIBLE_MEMBER!>Y<!>.hashCode()
|
|
}
|
|
}
|
|
}
|
|
}
|