mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +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:
@@ -2314,6 +2314,7 @@ static auto AddInterfaceDefinition(ImportContext& context,
|
||||
new_interface.first_owning_decl_id, SemIR::NameId::None,
|
||||
new_interface.parent_scope_id);
|
||||
auto& new_scope = context.local_name_scopes().Get(new_interface.scope_id);
|
||||
new_scope.set_is_interface_definition();
|
||||
const auto& import_scope =
|
||||
context.import_name_scopes().Get(import_interface.scope_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user