mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 02:08:12 +00:00
Check support for simple friend declarations (#7890)
As a drive-by fix, this also resolves an issue where out-of-line method definitions didn't have access to private class members.
This commit is contained in:
1 parent
2ec4bab59b
commit
5fed32a9aa
8 files changed
+343
-5
No files matched your search
@@ -321,6 +321,7 @@ auto DeclNameStack::ApplyNameQualifier(const NameComponent& name) -> void {
|
||||
name_context.parent_scope_id = PushNameQualifierScope(
|
||||
*context_, name_context.loc_id, scope_id, generic_id,
|
||||
context_->name_scopes().Get(scope_id).has_error());
|
||||
UpdateAccessContext();
|
||||
} else {
|
||||
name_context.state = NameContext::State::Error;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user