mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: Remove hasAccess() checks
This commit is contained in:
@@ -1746,8 +1746,7 @@ void ModuleFile::loadExtensions(NominalTypeDecl *nominal) {
|
||||
if (iter == ExtensionDecls->end())
|
||||
return;
|
||||
|
||||
if (nominal->hasAccess() &&
|
||||
nominal->getEffectiveAccess() < AccessLevel::Internal) {
|
||||
if (nominal->getEffectiveAccess() < AccessLevel::Internal) {
|
||||
if (nominal->getModuleScopeContext() != getFile())
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user