mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 17:18:10 +00:00
If a name is not found in a class, perform lookup into base classes. (#3502)
This builds out a little infrastructure for one name scope to `extend` another. We'll need more refinement here to cover other cases, but this should provide some foundation for that future work. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
1 parent
23c7d7dd99
commit
de0c02ddae
28 files changed
+892
-132
No files matched your search
@@ -146,7 +146,7 @@ auto DeclNameStack::UpdateScopeIfNeeded(NameContext& name_context) -> void {
|
||||
name_context.state = NameContext::State::Resolved;
|
||||
name_context.target_scope_id = scope_id;
|
||||
context_->PushScope(name_context.resolved_inst_id, scope_id,
|
||||
context_->name_scopes().Get(scope_id).has_load_error);
|
||||
context_->name_scopes().Get(scope_id).has_error);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user