mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Track complete types required by a generic. (#4652)
When a generic requires a symbolic type to be complete, add a new `require_complete_type` instruction to the generic eval block. During monomorphization of such an instruction, require that type to be complete.
This commit is contained in:
@@ -179,7 +179,7 @@ static auto ExtendImpl(Context& context, Parse::NodeId extend_node,
|
||||
parent_scope.set_has_error();
|
||||
return;
|
||||
}
|
||||
if (!context.TryToDefineType(constraint_id, [&] {
|
||||
if (!context.TryToDefineType(constraint_id, node_id, [&] {
|
||||
CARBON_DIAGNOSTIC(
|
||||
ExtendUndefinedInterface, Error,
|
||||
"`extend impl` requires a definition for facet type {0}",
|
||||
|
||||
Reference in New Issue
Block a user