mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Basic support for looking up impl members when naming an associated entity. (#3776)
When a member access names an interface member, perform impl lookup to find the impl and its corresponding member. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
0217ec2d3b
commit
1d720dc001
@@ -114,8 +114,7 @@ static auto BuildInterfaceWitness(
|
||||
|
||||
auto table_id = context.inst_blocks().Add(table);
|
||||
return context.AddInst(SemIR::InterfaceWitness{
|
||||
context.GetBuiltinType(SemIR::BuiltinKind::WitnessType), interface_id,
|
||||
table_id});
|
||||
context.GetBuiltinType(SemIR::BuiltinKind::WitnessType), table_id});
|
||||
}
|
||||
|
||||
auto BuildImplWitness(Context& context, SemIR::ImplId impl_id)
|
||||
|
||||
Reference in New Issue
Block a user