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:
josh11b
2025-03-12 00:33:46 +00:00
committed by GitHub
co-authored by Josh L
parent 68f6906c9f
commit ebaf62efb9
37 changed files with 4530 additions and 1285 deletions
+1
View File
@@ -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);