Error on non-constant parameters to a type. (#4215)

At present, this is a crash bug. I don't know whether this is the best
fix, but I figure it'll work until zygoloid has a chance to look.
This commit is contained in:
Jon Ross-Perkins
2024-08-13 18:35:10 +00:00
committed by GitHub
parent 23545bbece
commit a3a4c14960
9 changed files with 1136 additions and 424 deletions
+3
View File
@@ -224,6 +224,9 @@ static auto BuildClassDecl(Context& context, Parse::AnyClassDeclId node_id,
.self_type_id = SemIR::TypeId::Invalid,
.inheritance_kind = inheritance_kind}};
RequireGenericParams(context, class_info.implicit_param_refs_id);
RequireGenericParams(context, class_info.param_refs_id);
MergeOrAddName(context, node_id, name_context, class_decl_id, class_decl,
class_info, is_definition, is_extern,
introducer.modifier_set.GetAccessKind());