Accept generic parameter lists in class declarations. (#3933)

Check that they match across redeclarations.

Fix some importing bugs for symbolic bindings which were uncovered when
testing this.
This commit is contained in:
Richard Smith
2024-05-04 02:08:38 +00:00
committed by GitHub
parent 92fa0ac1ac
commit d5c0c9cfe3
57 changed files with 1006 additions and 287 deletions
+2
View File
@@ -134,6 +134,8 @@ static auto BuildFunctionDecl(Context& context,
SemIR::InstBlockId param_refs_id =
context.node_stack().Pop<Parse::NodeKind::TuplePattern>();
// TODO: Use Invalid rather than Empty if there was no implicit parameter
// list.
SemIR::InstBlockId implicit_param_refs_id =
context.node_stack().PopIf<Parse::NodeKind::ImplicitParamList>().value_or(
SemIR::InstBlockId::Empty);