mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Associated constants can be used in member function signatures (#5089)
This required allowing incomplete facet types where previously completeness was required. Once we support named constraints, we will need a way to consistently go from an interface to a facet type witness index without requiring the interface to be complete in these cases. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -154,6 +154,9 @@ auto HandleParseNode(Context& context,
|
||||
interface_info.definition_id = interface_decl_id;
|
||||
interface_info.scope_id = context.name_scopes().Add(
|
||||
interface_decl_id, SemIR::NameId::None, interface_info.parent_scope_id);
|
||||
context.name_scopes()
|
||||
.Get(interface_info.scope_id)
|
||||
.set_is_interface_definition();
|
||||
|
||||
auto self_specific_id =
|
||||
context.generics().GetSelfSpecific(interface_info.generic_id);
|
||||
|
||||
Reference in New Issue
Block a user