FIR: use lookup tag instead of class id in visibility checker
This commit is contained in:
committed by
TeamCityServer
parent
08e498f1f2
commit
a14a00809f
@@ -29,9 +29,9 @@ object FirJavaVisibilityChecker : FirVisibilityChecker() {
|
||||
if (symbol.packageFqName() == useSiteFile.packageFqName) {
|
||||
true
|
||||
} else {
|
||||
val ownerId = symbol.getOwnerId()
|
||||
ownerId != null && canSeeProtectedMemberOf(
|
||||
containingDeclarations, dispatchReceiver, ownerId, session,
|
||||
val ownerLookupTag = symbol.getOwnerLookupTag()
|
||||
ownerLookupTag != null && canSeeProtectedMemberOf(
|
||||
containingDeclarations, dispatchReceiver, ownerLookupTag, session,
|
||||
isVariableOrNamedFunction = symbol is FirVariableSymbol || symbol is FirNamedFunctionSymbol
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user