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
17 lines
328 B
Kotlin
Vendored
17 lines
328 B
Kotlin
Vendored
// FIR_COMPARISON
|
|
class Some() {
|
|
public val testPublic = 12
|
|
protected val testProtected = 12
|
|
private val testPrivate = 12
|
|
val testPackage = 12
|
|
}
|
|
|
|
class SomeSubclass : Some() {
|
|
fun test() {
|
|
<caret>
|
|
}
|
|
}
|
|
|
|
// INVOCATION_COUNT: 1
|
|
// EXIST: testPublic, testProtected, testPackage
|
|
// ABSENT: testPrivate |