mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01: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:
@@ -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