e0fca9d2f6
Visibility checks currently do not work in some cases, for example: - public nested class of private class is seen globally - private_for_this does not work - some other cases I am not yet aware of If `FirVisibilityChecker.isVisible` fix those issues, they will be fixed automatically in the completion
30 lines
509 B
Kotlin
Vendored
30 lines
509 B
Kotlin
Vendored
// FIR_COMPARISON
|
|
package test
|
|
|
|
open class BaseClass {
|
|
companion object {
|
|
val publicVal = 10
|
|
fun publicFun() {}
|
|
|
|
protected val protectedVal = 30
|
|
protected fun protectedFun() {}
|
|
|
|
private val privateVal = 30
|
|
private fun privateFun() {}
|
|
}
|
|
}
|
|
|
|
class Subclass : BaseClass() {
|
|
fun test() {
|
|
BaseClass.<caret>
|
|
}
|
|
}
|
|
|
|
// EXIST: publicVal
|
|
// EXIST: publicFun
|
|
// EXIST: protectedVal
|
|
// EXIST: protectedFun
|
|
|
|
// ABSENT: privateVal
|
|
// ABSENT: privateFun
|