mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 20:41:11 +00:00
Start pulling in names from cross-package imports. (#3789)
Note, I'm annotating the lookup partly so that the reason the conflict comes up is clear, partly so that there's actually a diagnostic line associated with the root cause as more tests get packed into a single file.
This commit is contained in:
1 parent
8cb932b99c
commit
957f11587d
8 files changed
+506
-37
No files matched your search
@@ -90,7 +90,7 @@ static auto BuildInterfaceWitness(
|
||||
if (auto fn_decl = decl.TryAs<SemIR::FunctionDecl>()) {
|
||||
auto& fn = context.functions().Get(fn_decl->function_id);
|
||||
auto impl_decl_id =
|
||||
context.LookupNameInExactScope(fn.name_id, impl_scope);
|
||||
context.LookupNameInExactScope(decl_id, fn.name_id, impl_scope);
|
||||
if (impl_decl_id.is_valid()) {
|
||||
used_decl_ids.push_back(impl_decl_id);
|
||||
table.push_back(CheckAssociatedFunctionImplementation(
|
||||
|
||||
Reference in new issue
Block a user