Files
kotlin-fork/idea/idea-completion/testData/basic/common/visibility/VisibilityOfClassMembersFromLocalClassMember.kt
T
Roman Golyshev e0fca9d2f6 FIR IDE: Add visibility checks to the completion
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
2021-04-13 11:40:23 +00:00

20 lines
384 B
Kotlin
Vendored

// FIR_COMPARISON
package test
open class Base {
public val testPublic = 12
protected val testProtected = 12
private val testPrivate = 12
val testPackage = 12
fun baseClassMember() {
class Local {
fun localClassMemeber() {
<caret>
}
}
}
}
// EXIST: testPublic, testProtected, testPackage, testPrivate